C
Programming and Technical
Programming
Program
What will be the output of the program ?
#include
int main()
{
static char *s[] = {"black", "white", "pink", "violet"};
char **ptr[] = {s+3, s+2, s+1, s}, ***p;
p = ptr;
++p;
printf("%s", **p+1);
return 0;
}
Options
1) ink
2) ack
3) ite
4) let
Read Solution (Total 1)
-
- Answer:1
- 8 years agoHelpfull: Yes(0) No(0)
C Other Question
What will be the output of the program ?
#include
int main()
{
int i=3, *j, k;
j = &i;
printf("%dn", i**j*i+*j);
return 0;
}
Options
1) 30
2) 27
3) 9
4) 3
What will be the output of the program?
#include
int main()
{
static int a[20];
int i = 0;
a[i] = i ;
printf("%d, %d, %dn", a[0], a[1], i);
return 0;
}
Options
1) 1, 0, 1
2) 1, 1, 1
3) 0, 0, 0
4) 0, 1, 0