top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+3 votes
7,495 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 LinkedIn 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
...