Showing posts with label scope. Show all posts
static

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

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