|
Related Questions |
View Answer |
|
89) main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }
|
View Answer
|
|
88) int i; main(){ int t; for ( t=4;scanf("%d",&i)-t;printf("%d
",i)) printf("%d--",t--); } // If the inputs are 0,1,2,3 find the o/p
|
- JCL Interview Questions & Answers">
View Answer
|
|
87) main() { int i; i = abc();Answer: 0..0 Explanation: The value of i is 0. Since this information is enough to determine the truth value of the boolean expression. So the statement following the if statement is not executed. The values of i and j remain unchanged and get printed.
printf("%d",i); } abc() { _AX = 1000; }
|
View Answer
|
|
85) #include<stdio.h> main() { FILE *ptr; char i; ptr=fopen("zzz.c","r"); while((i=fgetch(ptr))!=EOF) printf("%c",i); }
|
wh - JCL Interview Questions & Answers">
View Answer
|
|
83) # include<stdio.h> aaa() { printf("hi"); } bbb(){ printf("hello"); } ccc(){ printf("bye"); } main() { int (*ptr[3])(); ptr[0]=aaa; ptr[1]=bbb; ptr[2]=ccc; ptr[2](); }
|
} bbb(){ printf("hello"); - JCL Interview Questions & Answers">
View Answer
|
|
82) # include <stdio.h> int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); }
|
View Answer
|
|
81) main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }
|
getchar(); sum(argv[ - JCL Interview Questions & Answers">
View Answer
|
|
81) main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }
|
getchar(); sum(argv[ - JCL Interview Questions & Answers">
View Answer
|
|
80) main() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; }
|
View Answer
|
|
79) main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); }
|
View Answer
|
|
79) main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); }
|
View Answer
|
|
78) main() { int i=_l_abc(10); printf("%d
",--i); } int _l_abc(int i) { return(i++); }
|
} int _l_abc(int i) { re - JCL Interview Questions & Answers">
View Answer
|
|
77) struct point { int x; int y;};struct point origin,*pp; main() { pp=&origin; printf("origin is(%d%d)
",(*pp).x,(*pp).y); printf("origin is (%d%d)
",pp->x,pp->y); }
|
View Answer
|
|
76) struct aaa{ struct aaa *prev; int i; struct aaa *next; }; main() { struct aaa abc,def,ghi,jkl; int x=100; abc.i=0;abc.prev=&jkl; abc.next=&def; def.i=1;def.prev=&abc;def.next=&ghi; ghi.i=2;ghi.prev=&def; ghi.next=&jkl; jkl.i=3;jkl.prev=&ghi;jkl.next=&abc; x=abc.next->next->prev->next->i; printf("%d",x); }
|
View Answer
|
|
74) main() { int i=5,j=6,z; printf("%d",i+++j); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
73) #include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }
|
View Answer
|
|
72) #include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d..%d",*p,*q); }
|
View Answer
|
|
71) #include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
|
View Answer
|
|
70) main() { int i=-1; -i; printf("i = %d, -i = %d
",i,-i); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
69) main() { int *j; { int i=10; j=&i; } printf("%d",*j); }
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All JCL Interview Questions & Answers - Exam Mode /
Learning Mode
|