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

Explain about templates of C++.

780


What is struct c++?

647


What is array in c++ example?

746


Why should we use null or zero in a program?

685


Where must the declaration of a friend function appear?

639






Explain polymorphism?

673


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

736


What is a static member?

692


List the special characteristics of constructor.

832


What is difference between rand () and srand ()?

704


What is atoi in c++?

663


What is a storage class?

748


Explain what is polymorphism in c++?

721


What do you mean by enumerated data type?

655


Do you know what are static and dynamic type checking?

709