C Programs (GATE)
Description: C Programs (GATE) | |
Number of Questions: 15 | |
Created by: | |
Tags: |
Find the output of the following C program:
main(){int i=0;while(++i<=10) printf(%d, i);}
Find the output of the following C program:
main(){int i=0;while(i++<10)printf(%d,i);}
Find the output of the following C program:
main(){extern int i;i=20;printf(%d,sizeof(i));}
Find the output of the following C program:
Main(){int i;For(i=1;i <=10;i ++){Printf(%d ”,i);i=i+1;}}
Find the output of the following C program:
Main(){int i;For(;i <=10;i ++){printf(%d ”,i);}}
Find the output of the following C program:
main(){printf(%c, abcdefgh[4]);}
Find the output of the following C program:
main(){extern int a;printf(%d, a);}int a =20;
Find the output of the following C program:
main(){int x=10,y=10,z=5,i;i=x}
Find the output of the following C program:
main(){char str[7]=Strings;printf(%s,str);}
Find the output of the following C program:
main(){printf(5+Fascimile);}
Find the output of the following C program:
Main(){int i;For(i=1;i <=10;i ++);{Printf(%d ”,i);i=i+1;}}
Find the output of the following C program:
main(){char ch='A';printf(%d%d,sizeof(ch),sizeof(A));}
Find the output of the following C program:
main(){int i=2;printf(%d %d,++i,++i);}
Find the output of the following C program:
main(){printf(hello);main();}
Find the output of the following C program:
main(){int a[5]={2,3};printf(%d%d%d,a[2],a[3],a[4]);}