C Programming :: Declarations and Initializations
-
What will be the output of the program?
#includeint main() { int X=40; { int X=20; printf("%d ", X); } printf("%d\n", X); return 0; } -
In the following program where is the variable a getting defined and where it is getting declared?
#include int main() { extern int a; printf("%d\n", a); return 0; } int a=20;

Whatsapp
Facebook