Vidyalelo
C++ Programming · Q23

Structures and Unions in C++

Programming · C++ Programming · question 23

Q23

What is the output of the following code: struct Book char title[50]; int pages; ; Book b; cout << sizeof(b); in C++?

A.
50
B.
Depends on the compiler
Answer
C.
52
D.
60

Answer: Option B

Solution

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