A
Q. What is the output of the following code in C++?
Code:
#include <iostream>
using namespace std;
int main()
{
int a = 4;
float b;
cout << sizeof(++a + b) << endl;
cout << a;
return 0;
}
using namespace std;
int main()
{
int a = 4;
float b;
cout << sizeof(++a + b) << endl;
cout << a;
return 0;
}
- Correct Answer - Option(C)
- Views: 15
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.