How much is size of struct having 1 char & 1 integer?
Answers were Sorted based on User's Feedback
Answer / shraddha
char --> 1 byte & int --> 4 bytes
so total 5 bytes
| Is This Answer Correct ? | 2 Yes | 10 No |
Explain calling an object's member function(declared virtual)from its constructor?
What is encapsulation in c++?
Can user-defined object be declared as static data member of another class?
Is c++ platform dependent?
What does it mean to declare a destructor as static?
What is the error in the code below and how should it be corrected?
What is the difference in size of this two clasees? Class A { int a; char c; float f; } Class B { float f; char c; int a; }
What is the difference between public and private data members?
What is searching? Explain linear and binary search.
What is using namespace std in cpp?
What is the difference between std::vector and std::list
What is the role of copy constructor in copying of thrown objects?