stack<int*> 
vs
stack<int>
I am stuck in this kindly help if you know the Answer.
stack<int*> 
vs
stack<int>
I am stuck in this kindly help if you know the Answer.
 
    
     
    
    int is a type. It is an integer type.
int* is a compound type. It is a pointer to an object of type int.
stack<T> is instantiation of a template named stack. The angle brackets denote the list of template arguments passed to the instantiation.
stack<int> is instantiation of the template for the type int.
stack<int*> is instantiation of the template for the type int*.
