Discuss About this Question.
True, The default return type for a function is int.
True, A function cannot return more than one value at a time. because after returning a value the control is given back to calling function.
A function cannot be defined inside the another function, but a function can be called inside a another function.
long fun(int num) { int i; long f=1; for(i=1; i<=num; i++) f = f * i; return f; }
Yes, this function calculates and return the factorial value of an given integer num.
To install on iPhone/iPad: tap Share → Add to Home Screen.
Discuss About this Question.