Tuesday, 18 April 2017


Q.What are Actual and Formal parameters?
Ans.:-Actual parameters:-The parameters which are mentioned in the function call are known as actual parameter.They are the values which are actually same to the called function.Actual parameters can be written in the form of variables,constant or expression for any function calls that return a value.

Formal parameters:-The parameters which are mentioned in the function definition part are called formal parameter.They are used just to hold the values that are sent by the calling function.The formal parameters are simply like other local variables of the function which are created when the function calls start and are destroyed when the function ends.

No comments:

Post a Comment