Extern variable :predict the output int i=2; int main() { extern int i; clrscr(); printf("%d",i); getch(); return 0; } int i=3; Read More
static main() { static int var = 5; printf("%d ",var--); if(var) main(); } Answer: 5 4 3 2 1 Explanation: When static storage class is gi... Read More
Scope of variable #include int a=10; main() { int a=2; cout } what'll be the answer. In last post i wrote about scope of variables. It'll print local ... Read More
Global variable vs Local variable Today i'm going to explain you about scope of variable. Score of Variable is area of variable exists. Local Variable: local variable exi... Read More