How much is size of struct having 1 char & 1 integer?
Answer Posted / uttam kumhar
1 char always hold 1 byte in c in any 32-bit or 64-bit system
but in case of int it vary on the system.if there is 32-bit system the int hold 4-byte memory ...and if 64-bit system int hold 2-byte memory....
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
In what situations do you have to use initialization list rather than assignment in constructors?
What is a c++ object?
Explain overriding.
Do you need a main function in c++?
What is constant in c++ with example?
What is virtual destructor? What is its use?
What is a map in c++?
What does #define mean in c++?
How many keywords are used in c++?
What is struct c++?
What is the full form of stl in c++?
What is a far pointer? where we use it?
In c++, what is the difference between method overloading and method overriding?
What is linked list in c++?