Recent questions tagged output

1 votes
2 answers
181
#include <stdio.h int main() { //code int x; printf("%d",printf("A")+printf("BC")*printf("DEF")); return 0; }What should be the output of following program? Please explai...
3 votes
4 answers
182
Assume sizeof an integer and a pointer is 4 byte. Output?#include<stdio.h #define R 10 #define C 20 int main() { int *p[R][C]; printf("%d",sizeof(*p)); printf("%d",sizeof...
0 votes
1 answer
183
The Correct answer is c but how?int main(){ int a=210,b=120,c; c=a>b?1,2,3:2,5,6,7; printf("%d",c);}ans:-a) 1b) 2c) 3d) Error.
0 votes
0 answers
185
#include<stdio.h int fun1(int x) { x=14; } int fun2(int x) { x=20; } int main() { int(*p)(),m,n; scanf("%d",&m); if(m) p=fun1; else p=fun2; n=(*p)(); printf("%d",n); retu...
0 votes
0 answers
186
#include<stdio.h int main() { char a[]={'A','B','C','D'}; char *p=&a[0]; *p++; printf("%c%c",*++p, *p); }What will be the output?1)C B2)B B3)B A4)C A
0 votes
1 answer
187
#include<stdio.h int main() { printf("%d\n",1==5==5); printf("%d\n",1==5!=5); printf("%d\n",1!=5!=5); printf("%d\n",1!=5==5); return 0; }What is the output?
0 votes
3 answers
188
main ( ) { int a = 2, b, c; a* = b = c = 4; a = b = c; printf(“%d”, a); a = = (b = c); printf(“%d”, a); } What will be the output? And How.$1, 4$$4, 4$$1, 1$$ 8, ...
0 votes
1 answer
189
Answer is C . But i want to know what is segmentation fault?
2 votes
1 answer
192
Why printf("%d",5%-2); is 1, not -1.
1 votes
0 answers
193
What is the output of the following program?void main(){printf("%d",5%2);printf("%d",-5%2);printf("%d",5%-2);printf("%d",-5%-2);printf("%d",2%5);}A) 1,-1 -1 1 0B)1 -1 1 -...
1 votes
0 answers
194
main(){ int a ;char *x;x = ( char *)&a;a = 512 ;x[0] = 2 ;x = 2 ;printf("%d",a);}
2 votes
0 answers
195
Find the output printed by this program.Pls. Explain the Execution of this program in detail.Thanks
2 votes
2 answers
196
extern int i; int i = 10; i = 5; int main() { printf("%d", i); return 0; }The output for the above code is _______
2 votes
0 answers
197
1 votes
1 answer
198
2 votes
1 answer
199
1 votes
0 answers
200
What is the correct Answer ?My answer is 90 and given answer is no output how?
1 votes
1 answer
201
please explain it in detail ....and how we write this code for if else rule
0 votes
0 answers
202
#include <stdio.h int main(void) { int i = 0; char ch; while(1) { ch= *("hello world" + i); if(ch == '\0') break; putchar(ch); i++; } return 0; }What does ch= *("hello w...
0 votes
0 answers
203
what is the o/p?int main() { char inchar = 'A'; switch (inchar) { case 'A' : printf ("choice A \n") ; case 'B' : { printf ("choice B") ; break; } case 'C' : case 'D' : ca...
0 votes
1 answer
204
void printab () { static int i, a = -3, b = -6; i = 0; while (i <= 4) { if ((i++)%2 == 1) continue; a = a + i; b = b + i; printf("a = %d, b = %d\n", a, b);} }please expla...
0 votes
0 answers
206
#include<stdio.h int reverse(int); int main() { int num=4; reverse(num); return 0; } int reverse(num) { if(num==0) return 0; else printf("%d",num); reverse(num ); }What i...
0 votes
2 answers
208
0 votes
0 answers
209
0 votes
0 answers
210