stack <int>s; // while creating object we have to suppy value of T why?
Template use in stack
hi @n.nishchaya2000 how will the compiler know what type of stack you want to make? You have to explicitly mention this thing.
stack <int>s; // while creating object we have to suppy value of T why?
hi @n.nishchaya2000 how will the compiler know what type of stack you want to make? You have to explicitly mention this thing.