Questi What will be the size of the following
structure?
struct demo{
int a
char b;
float c;
}
Answers
Answered by
0
Answer:
9 Byte
Explanation:
The size of the given code is 8 Byte.
In the given code there are three types of variables are declared.
The first line of the code is int a which is the integer data type and this data type will take the 4 bytes of data in the program.
The second line of the code is char b which is the character data type and this data type will take the 1 bytes of data in the program.
The third line of the code is float c which is the floating data type and this data type will take the 4 bytes of data in the program.
#SPJ3
Similar questions