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

How to add two numbers without using semicolon n c????

3 Answers  


write a program for egyptian fractions in c?

1 Answers   Satyam,


value = 0xabcd; for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) { foo(); if (loop & 1) value >>= 1; } how many times is foo() executed?

6 Answers   Google,


What is the difference between far and near in c?

0 Answers  


Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….

1 Answers  






which operator having highest precedence? a.)+ b.)++ c.)= d.)%

4 Answers  


what is the output for this question: main() { int i=1; printf("%d%d%d",i,i++,++i); }

9 Answers  


swap two integer variables without using a third temporary variable?

6 Answers   Persistent,


Why do we use header files in c?

0 Answers  


What are structures and unions? State differencves between them.

0 Answers   iNautix,


Explain the use of fflush() function?

0 Answers  


Write a simple program to find the size of different basic data types in C.

3 Answers  


Categories