main()
{
struct test
{
char c;
int i;
char m;
} t1;
printf("%d %d\n", sizeof(t1), sizeof(t1.c));
}



main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), ..

Answer / rashmi

12 1

Is This Answer Correct ?    7 Yes 10 No

Post New Answer

More C Interview Questions

write a program to rearrange the array such way that all even elements should come first and next come odd

0 Answers  


What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,i++); }

9 Answers   CTS, Wipro,


const char * char * const What is the differnce between the above tow?.

6 Answers   Ramco, TCS,


Do you know pointer in c?

0 Answers  


Why is malloc used?

1 Answers  






Explain the difference between getch() and getche() in c?

0 Answers  


explain what is a newline escape sequence?

0 Answers  


Why is it important to memset a variable, immediately after allocating memory to it ?

0 Answers  


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

0 Answers   Infosys,


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

0 Answers  


what is the height of tree if leaf node is at level 3. please explain

0 Answers  


What is methods in c?

0 Answers  


Categories