We need to make a new function to execute operation on two templates
What would be the process
How can we make a program using two templates. please explain with a help of example (char and int)
in reference to this code , i want to declare two template and make all the functions work on both https://ide.codingblocks.com/s/257454
@dhruvtrehan45 you can make a stack of type char and one of type int like this
The syntax for functions will remain the same in both. Is this what you are asking for?
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.