How much is size of struct having 1 char & 1 integer?
Answer Posted / vadivelt
The size of the stucture depends on the following factors.
1.Depends on the size of the datatype, allocated by compiler
2.Depends on the allignment of the variables in the
structure.
If variables of different datatypes are misalligned, then
badding bytes will be added by the compiler to falitate to
speed up the memory access by the processor.So that the size
of the structure will increase.
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
What is lambda expression c++?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
What is setiosflags c++?
Is java a c++?
Explain "const" reference arguments in function?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
Is c++ double?
Search for: what is pair in c++?
What is a c++ map?
When do we use copy constructors?
What is an iterator?
What is this pointer in c++?
What are the rules about using an underscore in a c++ identifier?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What are the syntactic rules to be avoid ambiguity in multiple inheritance?