when we implement a generic stak using cpp,
in main function we have to declare the object of stacktemplate
like Stack<int> integerStack;
Stack<char> charStack;
is their memory alocation is different or same for all.
and second questaion is that, If we want to insert the integer,charactor,flot all this data types data in one single stack is itpossible
i mean stackelements are
1sc34.5 etc.
Comments
Leave a comment