diffence between the formal parameters and actual parameters . also give a suitable c++ code to illustrate both .
Answers
Answered by
11
▪️◾️◼️ ANSWER :-
ACTUAL PARAMETER :-
ACTUAL PARAMETER is a parameter , which is used in function call statement to send the value from calling function to the called function.
FORMAL PARAMETER :-
formal parameter is a parameter , which is used in function header of the called function to receive the value from actual parameter . for example ,
void Multiply (int T). //T is formal parameter.
{ cout << 5* T ; }
int main ( )
{ int A = 45 ;
Multiply ( A) ; // A is a factual parameter sent to multiply.( )
}
===========================================
BE BRAINLY
ACTUAL PARAMETER :-
ACTUAL PARAMETER is a parameter , which is used in function call statement to send the value from calling function to the called function.
FORMAL PARAMETER :-
formal parameter is a parameter , which is used in function header of the called function to receive the value from actual parameter . for example ,
void Multiply (int T). //T is formal parameter.
{ cout << 5* T ; }
int main ( )
{ int A = 45 ;
Multiply ( A) ; // A is a factual parameter sent to multiply.( )
}
===========================================
BE BRAINLY
srriyo:
thnk rishu
Answered by
2
{ int x = 5 ' , y = 7;
that a function large
that a function large
Similar questions