An argument is an entity used to pass the data from calling funtion to the called funtion. Formal arguments are the arguments available in the funtion definition.They are preceded by their own data types.Actual arguments are available in the function call.
arguments are called as paramters .they are passed from main function to subfunction.
formal arguments are located in subfunction. actual arguments are located in function the values of actual arguments are copied to formal arguments.
The arguments listed in function definition are known as formal arguments. And the arguments passed to function while invoking it, are known as actual arguments.
For e.g: ----------- int foo(int a, int b) { return (a+b); }
int main(void) { int var1 = 10, var2 = 10; int result; result = foo(var1, var2); return 0; }
in the above case, var1 & var2 are actual arguments and "a" and "b" are formal arguments.