Do I have this straight:
Parameters are a list within a function header of accepted data types.
Arguments are the actual values that are passed to the function with respect to the parameters.
Right?
This is a discussion on Parameters vs. Arguments within the C Programming forums, part of the General Programming Boards category; Do I have this straight: Parameters are a list within a function header of accepted data types. Arguments are the ...
Do I have this straight:
Parameters are a list within a function header of accepted data types.
Arguments are the actual values that are passed to the function with respect to the parameters.
Right?
Absolutely correct.
parameters are used while defining or declaring a function e.g. int a,int b in the declaration
void dummy(int a,int b);
arguments are the actual values passed to the function when a function is called e.g. 2,3 in
dummy(2.3);
Ahhh, thank you, Karam!