What is the difference between a template and a macro?

d) What is the difference between a template and a macro? What is the difference between the parameter to a template and the parameter to a function? Is it possible to provide special behavior for one instance of a template but not for other instances?

What is an exception?

c) What is an exception? How do you handle exceptions in C++? Can you have multiple catch
blocks with a single try block? Explain with example.