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

What is protected inheritance?

0 Answers  


What are the differences between java and c++?

0 Answers  


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

0 Answers  


Shall we use 'free' to free memory assigned by new, What are the further consequences??

5 Answers   Symphony,


What are c++ files?

0 Answers  


What are keywords in c++?

0 Answers  


What is string in c++ programming?

0 Answers  


How would you find out if a linked-list is a cycle or not?

0 Answers  


What is the difference between public, private, protected inheritance?

12 Answers   Wipro,


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

0 Answers  


What is difference between c++ and c ++ 14?

0 Answers  


What is the Maximum Size that an Array can hold?

55 Answers   Adobe, FutureSoft, HCL, Infosys, Satyam, TCS, Wipro,


Categories