What Will Be The Output of The Program ?: #Include
What Will Be The Output of The Program ?: #Include
#include<stdio.h>
int main()
p = ptr;
++p;
printf("%s", **p+1);
return 0;
a.
let
b.
ink
c.
ite
d.
ack
Clear my choice
Question 2
Flag question
Question text
What will be the output of the program ?
#include<stdio.h>
int main()
j = &i;
printf("%d\n", i**j*i+*j);
return 0;
a.
3
b.
27
c.
d.
30
Clear my choice
Question 3
Flag question
Question text
What would be the equivalent pointer expression for referring the array
element
a[i][j][k][l]
a.
((a+i)+j+k+l)
b.
(((a+i)+j)+k+l)
c.
((((a+i)+j)+k)+l)
d.
*(*(*(*(a+i)+j)+k)+l)
Clear my choice
Question 4
Not yet answered
Flag question
Question text
#include<stdio.h>
int main()
char *str;
str = "%s";
printf(str, "K\n");
return 0;
}
a.
No output
b.
Error
c.
%s
d.
Clear my choice
Question 5
Flag question
Question text
#include<stdio.h>
int main()
z=y;
*y++=*z++;
x++;
printf("x=%d, y=%d, z=%d\n", x, y, z);
return 0;
a.
b.
c.
d.
Clear my choice