Examveda

What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
    int a = 5;
    float b;
    cout << sizeof(++a + b);
    cout << a;
    return 0;
}

A. 2 6

B. 4 6

C. 2 5

D. 4 5

Answer: Option D


Join The Discussion

Related Questions on Variables and Data Types in C plus plus