29. What will be the output of following code :
// Assume all header files are included
main()
{
typedef static int i;
i var=200;
printf("The value of variable is %d",var);
}
A. The value of variable var is 0
B. The value of variable var is 200
C. Compilation Error
D. Runtime Error
View Answer & Explanation
Ans. C
Too many identifiers in type definition
30. What will be the output of following code :
// Assume all header files are included
int main(){
while(!printf(“awesome”));
return 0;
}
A. awesome
B. Error
C. Infinite loop
D. None of these
View Answer & Explanation
Ans. A
Explanation : Above code will just print “awesome” as the message.
