Elearning , Interview Questions And Answers

Google

What is the output of the Program? main() { int i=5; i=!i>3; printf("%d",i); } Ans: 0 4. What is the output of the Program? main() { int a[10]; 3[a]=10; printf("%d",*(a+3)); } Ans: 10 5. int (*p[10]) (); In above declaration what type of variable is P? Ans: P is array of pointers that each points to a function that takes no arguments and returns an int. 6. What is the output of the Program? struct emp { int a=25; char b[20]="tgk"; }; main { emp e; e.a=2; strcpy(e.b,"tellapalli"); printf("%d %s",e.a,e.b); } Ans: Compile Error. 7. What is the output of the Program? main() {