(c) Differentiate between formal parameter and actual parameter.
Answers
Answered by
16
hello T4Talent,
here is your answer,
1)Actual parameters are used in a calling function when a function is invoked and formal parameters are used in a function header....
for eg:-c=add(a,b) here a and b are actual parameters and int add (int a ,int b) here a and b are formal parameters.
2) actual parameters can be constants ,variables or expression. But formal parameters are only variables.
3)Actual parameters sends value to the formal parameters . formal parameters receive values from actual parameters.
thanks,
pls mark as brainliest
here is your answer,
1)Actual parameters are used in a calling function when a function is invoked and formal parameters are used in a function header....
for eg:-c=add(a,b) here a and b are actual parameters and int add (int a ,int b) here a and b are formal parameters.
2) actual parameters can be constants ,variables or expression. But formal parameters are only variables.
3)Actual parameters sends value to the formal parameters . formal parameters receive values from actual parameters.
thanks,
pls mark as brainliest
Answered by
10
Answer:
Actual parameters are the variable or expression corresponding to a formal parameter that appears in the function or method call in the calling environment.
Formal parameters are a variable and its type as they appear in the prototype of the function or method.
mark it as the brainliest please.
Similar questions