Elearning , Interview Questions And Answers

Google

Q27) Find the output for the following C program #include<stdio.h> void main(void); { int var1,var2,var3,minmax; var1=5; var2=5; var3=6; minmax=(var1>var2)?(var1>var3)?var1:var3:(var2>var3)?var2:var3; printf("%d\n",minmax); Q28) Find the output for the following C program #include<stdio.h> void main(void); { void pa(int *a,int n); int arr[5]={5,4,3,2,1}; pa(arr,5); } void pa(int *a,int n) { int i; for(i=0;i<n;i++) printf("%d\n",*(a++)+i); } Q29) Find the output for the following C program #include<stdio.h> void main(void); void print(void); { print(); } void f1(void) { printf("\nf1():"); }