Submitted by manoj on

For your knowledge, let me tell you these two terms argument and parameter are not same.

Trick1

parameter

In a function definition, a parameter is a variable


         void introduction(string name, int age){
         // Here name and age are parameters of the introduction function
         out << "Hello! My name is Manoj Kumar">
         }
         

argument

When a function is called, an argument is passed as a value.


         int main() {
         // Here Jerry and 15 are arguments passed to the introduction function 
         introduction("Jerry", 15);
         return 0;
         }
         

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
Standard (Image)