#include <stack> => Header to includestack<dataType> var => Initialize stackvar.push(val) => Insert value at topvar.pop() => Returns and removes the value from topvar.size() => Returns the size of stackvar.top() => Returns the top elementvar.empty() => Returns boolean value true if stack is empty