Đặng Thị Ngọc Diệp
New member
What will be the output of the following C++ code?
A. 20
B. compile time error
C. runtime error
D. 40
Code:
#include <iostream>
using namespace std;
int main()
{
void a = 10, b = 10;
int c;
c = a + b;
cout << c;
return 0;
}
B. compile time error
C. runtime error
D. 40