top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is an argument? Differentiate between formal arguments and actual arguments?

+3 votes
1,060 views
What is an argument? Differentiate between formal arguments and actual arguments?
posted Dec 6, 2013 by Prachi Agarwal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+2 votes

An argument is an entity used to pass the data from calling function to the called function.

Formal arguments are the arguments available in the function definition. They are preceded by their own data types. Where as Actual arguments are available in the function call.

answer Dec 6, 2013 by Neeraj Pandey
0 votes

I have already answered this in some similar question, answering again -

1) Arguments of the function are the parameter which are passed from the caller to the called function or from the command line to the main function.

2) The arguments passed to the functions while the function is called is known as the actual arguments, whereas the arguments declared in the function header is called as formal arguments.

answer Dec 7, 2013 by Kumar Mitrasen
...