Q. What will sizeof return for the following structure?
Code:
struct sample {
char c;
int i;
};
β
Correct Answer: (B)
8
Explanation: Padding for alignment makes the size 8 bytes on most systems.