top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+3 votes
6,889 views
What is an argument? Differentiate between formal arguments and actual arguments in C?
posted Dec 4, 2013 by Deepak Raijada

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

2 Answers

0 votes

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 4, 2013 by Kumar Mitrasen
0 votes

The arguments passed to the functions are called actual arguments.
The arguments declared in the function definition is called as formal arguments.

int addition(int a, int b) /* a and b are formal arguments*/ 
{
  ...
} 

void main() 
{ 
  int i
  .... 
  i = addition(1,2); /* 1 and 2 are called actual arguments*/ 
  ... 
}
answer Jun 17, 2014 by Salil Agrawal
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...