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

Is it possible to run a c program without using main?If yes HOW??

13 Answers   Wipro,


How can I access memory located at a certain address?

3 Answers   Verizon,


What is an object?

5 Answers  


Write a program in c to print * * * * * *******

1 Answers  


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

0 Answers  






how to set Nth bit of variable by using MACRO

3 Answers   HCL,


program to find the ASCII value of a number

8 Answers  


int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?

6 Answers   TCS,


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

0 Answers  


6)swap(int x,y) { int temp; temp=x; x=y; y=temp; } main() { int x=2;y=3; swap(x,y); } after calling swap ,what are yhe values x&y?

3 Answers  


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

0 Answers  


Why do we use pointer to pointer in c?

0 Answers  


Categories