What is the output of the above program? Explain.">
#includevoid fun(int);void main(){ inta; a=3; fun(a); }void fun(int){ if(n>0) { fun(--n); printf("%d",n); fun(--n); } }
What is the output of the above program? Explain.
It proceeds like thisfun(3)fun(2)fun(1)fun(0)fun(-1)printf("%d",n)(Here n is 0)fun(-1)printf("%d",n)(Here n is 1)fun(0)printf("%d",n)(Here n is 2)fun(1)fun(0)printf("...
The out will be just like 3 2 1 0 2 1 0 1 0 0... not sureThis is a recursive function with 2 recursive calls one at line 13 and other in at line 15.The variable 'a' initial...
For a global objects and static class members, the initializer list doesnt invoke any code on run time. (Initialization data is stored directly in the binary).
If you are initializing a lot of object...
arpita
Jan 15th, 2012
The name of function,return type,and no. of function are same in base class and derived class than it is known as function overriding.