How much is size of struct having 1 char & 1 integer?

Answers were Sorted based on User's Feedback



How much is size of struct having 1 char & 1 integer?..

Answer / shraddha

char --> 1 byte & int --> 4 bytes
so total 5 bytes

Is This Answer Correct ?    2 Yes 10 No

Post New Answer

More C++ General Interview Questions

How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

0 Answers   Yahoo,


Write the program form Armstrong no in c++?

11 Answers   HCL,


Is c++ the hardest programming language?

0 Answers  


Why do we need runtime polymorphism in c++?

0 Answers  


What is the difference between while and do while loop? Explain with examples.

0 Answers  






When should I use unitbuf flag?

0 Answers  


Write a single instruction that will find the remainder of integral division when x is divided by y. Have the answer stored in z.

1 Answers  


What is difference c and c++?

1 Answers  


Can we distribute function templates and class templates in object libraries?

0 Answers  


What are proxy objects in c++?

0 Answers  


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

0 Answers  


What are c++ variables?

0 Answers  


Categories