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
Explain about templates of C++.
What is struct c++?
What is array in c++ example?
Why should we use null or zero in a program?
Where must the declaration of a friend function appear?
Explain polymorphism?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
What is a static member?
List the special characteristics of constructor.
What is difference between rand () and srand ()?
What is atoi in c++?
What is a storage class?
Explain what is polymorphism in c++?
What do you mean by enumerated data type?
Do you know what are static and dynamic type checking?