Vidyalelo
C++ Programming · Q629

C++ miscellaneous

Programming · C++ Programming · question 629

Q629

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

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

Answer: Option C

Solution

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