C++ whats the diff???

Archived from the original Sajha.com — preserved as posted, replies can no longer be added here.
Start a New Discussion
Archived Post

argument and a parameter variable : what's the diff where is each one used?

cp21 · Sep 13, 2015 8:48 PM · 210 views

1 Reply

parameters - what a function takes as input e.g. consider a function calc_area(float height, float width), height and width are parameters. arguments - values you pass as input to a function when you call it. e.g. consider a function call float area = calc_area(10, 20), 10 and 20 are arguments.

fuckeetow · Sep 13, 2015 9:01 PM

This conversation is preserved exactly as it was on the original Sajha.com and can't accept new replies.

Start a New Discussion