R
Q. Determine Output
void main() { int i=1; while(i<=5) { printf("%d", i); if(i>2) goto here; i++; } } fun() { here: printf("PP"); }
Compiler error: Undefined label 'here' in function main Labels have functions scope, in other words The scope of the labels is limited to functions. The label 'here' is available in function fun() Hence it is not visible in function main.
You must be Logged in to update hint/solution
Q. What is true about strftime function?
Q. Which of the following ways are correct to include header file in C program?
Q. Comment on the following pointer declaration?
Q. What is the disadvantage of arrays in C?
Q. Choose a correct statement about C break; statement.
Q. What is the output of C program with strings?
Q. The ________ operator is true only when both the operands are true.
Discusssion
Login to discuss.