Why and where should 'void' is used in a c++ program