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


Please Help Members By Posting Answers For Below Questions

What is the auto keyword good for in c++?

903


What is a block in c++?

834


Explain the virtual inheritance in c++.

840


What is the real purpose of class – to export data?

888


Show the declaration for a static member variable.

780


Differentiate between the message and method in c++?

857


What is the use of string in c++?

797


What can I safely assume about the initial values of variables which are not explicitly initialized?

855


What is virtual table?

859


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

845


What is null pointer and void pointer and what is their use?

858


What is called array?

863


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

852


How does c++ structure differ from c++ class?

876


How do I exit turbo c++?

825