Vidyalelo
C++ Programming · Q87

Variables and Data Types in C++

Programming · C++ Programming · question 87

Q87

What will be the output of the following C++ code? #include 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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board