Tiên Hương
New member
What will be the output of the following C++ code?
A. 2 6
B. 4 6
C. 2 5
D. 4 5
Code:
#include <iostream>
using namespace std;
int main()
{
int a = 5;
float b;
cout << sizeof(++a + b);
cout << a;
return 0;
}
B. 4 6
C. 2 5
D. 4 5