Q. What is the output of the following C++ program?
Code:
#include <iostream>
using namespace std;
int main()
{
int n1 = 10;
float n2 = 10;
cout << sizeof(n1 + n2);
return 0;
}
β
Correct Answer: (B)
4