Discussion :: Functions - C++
-
Which of the following statement is correct about the program given below?
#include long FactFinder(long = 5); int main() { for(int i = 0; i0; i++) cout return 0; } long FactFinder(long x) { if(x 2) return 1; long fact = 1; for(long i = 1; i 1; i++) fact = fact * i; return fact; }
|
A.
The program will print the output 1. |
|
B.
The program will print the output 24. |
|
C.
The program will print the output 120. |
|
D.
The program will print the output garbage value. |
|
E.
The program will report compile time error. |
Answer : Option B
Explanation :
No answer description available for this question.
Be The First To Comment

Whatsapp
Facebook