How many bytes in memory taken by the following C structure?
#include <stdio.h>
struct test
{
int k;
char c;
};
#include <stdio.h>
struct test
{
int k;
char c;
};A. Multiple of integer size
B. integer size+character size
C. Depends on the platform
D. Multiple of word size
Answer: Option A
Related Questions on Structure and Union
Which of the following can be a member of a structure?
A. Function
B. Another structure
C. Enumeration
D. All of the above

Join The Discussion