Sunday 20 May 2012

What are actual and formal parameters?


     Actual parameters are the parameter on which the function should work. It is declare
within the main function. In actual parameter we pass only the variable name.
     Formal parameters are declared outside the main function. It works on the data which is passed by the calling function. Formal parameter holds the value of calling function

No comments:

Post a Comment