I would like to know is there any problem if we are not clearing or deleting an object that scope is complete program.
I believe the OS will cleanup the memory after executing the application.
This object is not going to use any socket or file operation, it will just allocate some memory for storing some data.
may be int * x = new int[100];