Elearning , Interview Questions And Answers

Google

Q30) Find the output for the following C program #include "6.c" void print(void) { extern void f1(void); f1(); } static void f1(void) { printf("\n static f1()."); } Q31) Find the output for the following C program #include<stdio.h> void main(void); static int i=50; int print(int i); void main(void) { static int i=100; while(print(i)) { printf("%d\n",i); i--; } } int print(int x) { static int i=2; return(i--); } Q32) Find the output for the following C program #include<stdio.h> void main(void); typedef struct NType { int i; char c; long x; } NewType;