+ 1
What is argument (passing argument) , parameters, ? Please tell me . ( If possible with example. )
Note: sometime i ask questions like foolish, but i don't know that.
4 Respuestas
+ 2
Some functions need input like function add to added two numbers so in function definition you write int add(int a,int b);
Here a and b are called params.But when called inside main function they are called arguments or the real value of numbers a and b :
add(5,6); So 5 and 6 are called arguments.
+ 2
When function is defined may be it has or not parameters.params are passed in function definition outside main function.Vs arguments which are required in function call or execution in the main function.
+ 2
HBhZ_C , excellent! Thank you.
+ 1
Can you tell ME more clear?