Question: In the code listed below, ___________ is the actual parameter and ____________ is the formal parameter # include using namespace std; int num; int fact(int
In the code listed below, ___________ is the actual parameter and ____________ is the formal parameter
# include
using namespace std; int num; int fact(int n) { int f, j; f = 1; for(j-1; j<=n; j++) { f*=j; } return f; } int main () { cout << "enter a small integer: "; cin>> num; cout << "Its factorial is: " << fact(num) << endl; //ra1 return 0; ) In the code listed above, ___________ is the actual parameter and ____________ is the formal parameter
| num, n | ||
| n, num | ||
| f, j | ||
| j, f |
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
