What's the difference between passing an argument inside a function as a parameter and declaring the argument as a variable inside the function declaration block in function definition?
Example: Make use of my comments to get the gist of the question.
#include<iostream>
         int max=0;
         int t=0;
    class stack
    {
         int s[10];
    public:
         void push(int);
         void pop();
    };
    void stack::push(int y) //argument passed inside function parameter
    {
          if(t<=max);
          {
               s[t]=y;
               t=t+1;
          }
          else
          cout<<"Stack overflow";
    }
    void stack::pop()
    {
         int item; //variable declared inside function definition
         if(t>=0)
         {
               t=t-1;
               item=s[t+1];
         }
    }
 
     
     
     
    