What is the difference between a parameter and an argument
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:6| Question number:1
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:6| Question number:1
total answers (1)
A **parameter** is the variable in the parentheses after the function name when we defining the function and used inside a function.
An **argument** is the variable in the parentheses after the function name when we calling the function, and it is used to initialize the parameter of the function.