What is difference between structure and union with example?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

#include<stdio.h> void main() { int a [5]; for (i=0; i<=4; i++) printf(ā€œ%dā€ ,a[i]); }

8 Answers  


Evaluate the following: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); 1) 10 2) 11 3) 1

6 Answers  


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

0 Answers  


main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?

7 Answers   AMCAT, HCL, Ramco, Zycus Infotech,


What is the Purpose of 'extern' keyword in a function declaration?

0 Answers  






in linking some of os executables are linking name some of them

0 Answers   IBM,


What is static memory allocation?

0 Answers  


What is the difference between %d and %i?

0 Answers  


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

0 Answers  


we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?

2 Answers  


what is op? for(c=0;c=1000;c++) printf("%c",c);

21 Answers   Trigent,


What does sizeof return c?

0 Answers  


Categories