Why isn't sizeof for a struct equal to the sum of sizeof of each member?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is design pattern?

2 Answers   Samsung,


What is a string example?

0 Answers  


What is format for defining a structure?

0 Answers  


Can we overload operator in c++?

0 Answers  


What is the difference between static link library and dynamic link library?

7 Answers   Tech Mahindra,


How a pointer differs from a reference?

0 Answers  


what are the types of Member Functions?

0 Answers  


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

0 Answers  


class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members.

2 Answers   Quark,


what is the use of Namespace in c++.

3 Answers  


How do you test your code?

4 Answers   Microsoft,


Can we get the value of ios format flags?

0 Answers  


Categories