Nguyễn Linh Trang
New member
What will be the output of the following C++ code?
A. 2
B. 4
C. 8
D. garbage
Code:
#include <iostream>
using namespace std;
int main()
{
int num1 = 10;
float num2 = 20;
cout << sizeof(num1 + num2);
return 0;
}
B. 4
C. 8
D. garbage