Recent questions tagged output

0 votes
1 answer
121
X=2;Y=++x * ++x * ++x ;Printf("%d",Y);In the above question, we have to use the final value of x or it will be evaluated seperately and then multiplied.Ex: Y= 3*4*5; or Y...
1 votes
0 answers
123
0 votes
1 answer
124
void print(int i){ static int x=4; if(i!=0){ print( x); } printf("%d",x); }What will be output printed for print(10)?Will it print value as call by value or call by refer...
2 votes
0 answers
125
What will be the final output : #include <stdio.h int r(){ static int num=7; return num ; } int main(){ for(r();r();r()) { printf("%d ",r()); } return 0; } A)63 B)41 C)52...
0 votes
0 answers
127
int main(){ int a=2,b=2,c=2; printf("%d",a==b==c); return 0;}what is the output??? and what will be done during executioncan anyone explain this……...
2 votes
3 answers
129
#include <stdio.h>int arr[] = { 10, 20, 30, 40, 50 };static int count ;inc() {return ++count;}int main(){arr[count++]=inc();printf("%d ", arr[count]);printf("%d ", arr[0]...
0 votes
0 answers
130
is *ptr=&a is true in Ci found this incan anyone explain what does *ptr = &i; in the above picture
0 votes
1 answer
132
#include<stdio.h #define A -B #define B -C #define C 5 int main() { printf("The value of A is %dn", A); return 0; }what is the output?????
0 votes
1 answer
133
main(){unsigned int i= 255;char *p= &i;int j= *p;printf("%d\n", j);unsigned int k= *p;printf("%d", k);} Both the outputs are -1. I have even tried with - int i = 255(3rd ...
1 votes
1 answer
134
#include <stdio.h>main (){unsigned x = -10;int X = 20;if (X x) printf ("Hello");else{ printf ("%d",x); printf ("Jello"); }}
0 votes
0 answers
135
#include<stdio.h>void main(){int p=-8;int i= (p++,++p);printf("%d\n",i);}
2 votes
3 answers
138
What is the output of the following $\text{C}$ program?#include<stdio.h int main(void){ char s1[] = “Hello”; char s2[] = “World!”; s1 = s2; printf(“%s”,s1); }...
4 votes
1 answer
141
0 votes
0 answers
142
#include<stdio.h int main() { char A[5][7][6]; char *p[5][7][6]; printf(“%d\t”,(unsigned)(A+1)-(unsigned)A); printf(“%d”,(unsigned)(p+1)-(unsigned)p); } OPTIONS:4...
0 votes
0 answers
143
0 votes
0 answers
145
1 votes
0 answers
146
what is the result of comparing signed with unsigned number??#include <stdio.h>int main(){ unsigned int a = 5;if(a -1)printf("5 is -1\n"); return 0; }
0 votes
0 answers
147
Can anyone please explain the functioning of the statement (specified in bold) ?#include <stdio.h>void main(){int p = -8;int i = (p++, ++p);printf("%d\n", i);}
0 votes
1 answer
149
#include<stdio.h void fun(int *p,int *q) { p=q; *p=q; } int i=0,j=1; int main() { fun(&i,&j); printf("%d%d",i,j); }What will be the output of i and j in 16-bit C Compiler...
0 votes
0 answers
150