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

Answer Posted / saranya

The character datatype takes "1 Byte" for their memory. the
integer takes "2 Bytes" for their memory

Is This Answer Correct ?    6 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best c++ compiler?

589


How do you show the declaration of a virtual constructor?

524


How can an improvement in the quality of software be done by try/catch/throw?

586


What are default parameters? How are they evaluated in c++ function?

661


What is the difference between the compiler and the preprocessor?

611






What is input operator in c++?

581


What is do..while loops structure?

613


What are the advantages of pointers?

593


Define pure virtual function?

557


Is it possible to provide default values while overloading a binary operator?

761


Define Virtual function in C++.

619


Are iterators pointers?

664


What is prototype in c++ with example?

556


What is size_type?

543


Is python written in c or c++?

614