I was trying to initialise an associative container (map) in a function, but couldn't. Seems like whatever is initialised in the function stays in the function. That's natural for a function. So, how are we going to initialise the container in a function and use it in the main function. The initialising statement looks something like this:
map<char, int>phone_book;