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

Answer Posted / shraddha

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

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain function overloading

666


Which software is best for coding?

679


Is c++ an integer?

673


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

623


What are exceptions c++?

681






How is static data member similar to a global variable?

686


What is abstract class in c++?

687


Is java made in c++?

676


What are the advantages of using friend classes?

723


What is c++ hiding?

724


What are structs in c++?

677


Is c++ a software?

809


How do you define/declare constants in c++?

693


What is implicit pointer in c++?

702


which of the following is not an secondary constant a) array b) real c) union

1374