Vidyalelo
C++ Programming · Q230

C++ miscellaneous

Programming · C++ Programming · question 230

Q230

What will be the output of the following C++ code? #include #include using namespace std; class Base public: ; int main() Base b; cout<<sizeof(b); return 0;

A.
16
B.
4
C.
8
D.
1
Answer

Answer: Option D

Solution

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