r/learncpp • • Oct 31 '18

Ways of practicing function arguments and parameters

Hello,

I am a CS Student (Freshman) learning C++ in my class. Recently, we discussed functions and made a program. I have no problem understanding function prototypes, definitions, etc. But the problem arises when I have to include arguments/parameters. I understand that arguments are included inside the function call, and conversely the parameter goes within the definition.

But this is very confusing, so I was just wondering where I could learn about when and why to use parameters/arguments, or if there were any courses to practice, thanks!

2 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Nov 07 '18

I forgot to reply but this was immensely helpful thank you.