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*/


52 people found this useful

What are the differences between Macros and Functions in C Language?

Macros are essentially shorthand representations of arbitrary sections of the source code, which makes the source code succinct, while its (the macro template's) expansion rep

What is the difference between a function an argument?

function is a segment of code that compute a value.....and argument is a parameter that is pass in function................. from sahil chopra In the IF function, the first

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 e

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, cumberbund opt

What is the difference between actual and formal parameters?

Formal parameters are the parameters as they are known in the function definition. Actual parameters (also known as arguments ) are what are passed by the caller. For example

The difference between formal and functional regions is?

There is a major difference between formal and functional regions.Formal regions are huge areas that are characterized by manyactivities. A functional region is a region that

Formal and Actual Arguments?

The actual arguments (we call them parameters) to a function are the original copies in the caller's address space. The function prolog code provided by the compiler provides

What are the Differences between natural language and formal language?

Answer 1. Although formal and natural languages have manyfeatures in common---tokens, structure, syntax andsemantics---there are many differences.ambiguityNatural languagesar

What is the difference between argument and function in Excel?

A function is a built-in formula in Excel designed to do a particular task. Arguments are values that you provide to a function to do its task, like cell address that hold num

What is difference between Parameter and Argument in C language?

They are synonyms. Some people use the word 'argument' for the 'formal parameter' and 'parameter' for the 'actual parameter', others do on the other way around. PS: exa

Relationship between actual and formal arguments?

The formal arguments are the names given to the parameters/arguments in the function declaration. These names will be used within the body of the function. void myFunc( int

Difference between actual parameter and formal parameters in c language?

1> the parameters used in prototypes and function definitions are called formal parameters and 2>those used in function calls are called actual parameters.actual parameters u

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: vo

What is the difference between casual and formal language?

Very generally speaking, formal language is the "proper" way to speak, and casual language is the way people speak in every day life. The main difference is mostly when you