0
Find the output of the following:
#include <iostream> using namespace std; class T { public: static int a=3; int b=10; }; int Test T :: i; int main() { cout<<sizeof(Test); return 0; }
3 Answers
+ 2
You can find the output if you run your code.
+ 2
Mahima Bhardwaj So pls edit the question description to indicate that. Never rely on guessing.
0
I know the answer but i put this question to know the exact reason behind the size of class