#include <iostream> using namespace std; int main() { void a = 10, b = 10; int c; c = a + b; cout << c; return 0; }
a) 20
b) compile time error
c) runtime error
d) 40
#include <iostream> using namespace std; int main() { void a = 10, b = 10; int c; c = a + b; cout << c; return 0; }
a) 20
b) compile time error
c) runtime error
d) 40
You must be logged in to post a comment.
b
Explanation: void will not accept any values to its type.