15. What will be the output of following code :
// Assume all header files are included
int main(){
char c[ ] = “DATA1234”
char * P = C;
printf (“%s” P+P[3]-P[1]);
return 0;
}
A. DATA1234
B. 234
C. 1234
D. A1234
View Answer & Explanation
Ans. a
16. What will be the output of following code :
// Assume all header files are included
main()
{ int i;
if(true)
printf("work");
else
printf("not work");
return 0;
}
A. work
B. not work
C. compiler error
D. runtime error
View Answer & Explanation
Ans. a