Choose a topic to test your knowledge and improve your C/C skills
What linkage does automatic variables have?
Automatic variables are variables that are?
Automatic variables:
Automatic variables are allocated memory in?
What is the output of this C code? void main() { int x; } here x is?
Automatic variables are initialized to?
The variable declaration with no storage class specified is by default:
What is the output of this C code? int x = 5; void main() { int x = 3; printf("%d", x); { x = 4; } printf("%d", x); }
What is the scope of an external variable?
What is the scope of a function?
Which variable has the longest scope? int b; int main() { int c; return 0; } int a;
Array sizes are optional during array declaration by using ______ keyword.
What is the output of this C code? void main() { int x = 3; { x = 4; printf("%d", x); } }
What is the output of this C code? int x = 5; void main() { int x = 3; m(); printf("%d", x); } void m() { x = 8; n(); } void n() { printf("%d", x); }
What is the output of this C code? static int x; void main() { int x; printf("x is %d", x); }
What is the output of this C code? void main() { static int x; if (x++ < 2) main(); }
Which of the following is true for static variable?
Assignment statements assigning value to local static variables are executed only once?
What is the format identifier for "static a = 20.5;?
Functions have static qualifier for its declaration by default.
Is initialization mandatory for local static variables?