What would you like to do?

What is the difference between actual and formal arguments used in functions in C language?

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

exists and is an alternate of .

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.

Ex. Suppose sum() is a function.

int sum(int x, int y) /*Here x and y are called formal arguments*/
{...}

void main()
{
int ans;
....

ans = sum(3,5); /*Here the arguments 3 and 5 are called actual arguments*/

...

getch();
}
51 people found this useful
Thanks for the feedback!

What is the difference between c language and embedded c language?

Using normal C you cannot address a bit value. The minimum you can address is 1 byte. using embedded C you can access even abit value C is a widely used general purpose

What are the differences between formal and informal language?

In short and in general, formal language is the language you would use when talking to your boss, whereas informal language is the one you use when talking to a friend. For ex

What are the differences between informal and formal function?

  Official: "Tails" for the men; "Gown" for the women.   Formal: Black or White tie for men; Evening dress for women.   {"Black Tie": Black tuxedo, black bow-tie, cu

What is the Difference between C and C languages?

C languages are often based originally on the C language but no longer adhere to it's tenets: often they supersede the original ANSI-92 C language. C++, Objective C, C-, and C

What are the Differences between natural language and formal language?

Answer 1. Although formal and natural languages have many  features in common---tokens, structure, syntax and  semantics---there are many differences.ambiguityNatural langua

What are the arguments of main function in C programming language?

int main( void ) -its a default main function. int main( int argc, char *argv[] ) -The variable argc never holds a negative value. int main( int argc, char *argv[], char *env

What is the difference between actual and formal argument in c plus plus?

Formal arguments are the arguments used locally by a function. Actual arguments are the arguments that were passed to the function by the caller. Consider the following: voi

What is the benefit of using function.llustrate different ways of passing argument to function in c plus plus?

Functions are used to reduce the lines of code and the complexity of the code. For an instance let us suppose that you want to calculate the factorial of numbers at different

What is the difference between formal and actual arguments?

Formal arguments are the arguments in the definition of a function. Actual arguments are the arguments provided to the function when you call it. Example: float divide(flo