Constructors and Destructors are special functions. These are one of the features provided by an Object Oriented Programming language. Constructors and Destructors are defined inside an object class. When an object is instantiated, ie. defined of or dynamically allocated of that class type, the Constructor function of that class is executed automatically. There might be many constructors of which the correct implementation is automatically selected by the compiler. When this object is destroyed or deallocated, the Destructor function is automatically executed. For example when the scope of the object has finished or the object was dynamically allocated and now being freed. The Constructors and the Destructors are generally contains initialization and cleanup codes respectively required by an object to operate correctly. Because these functions are automatically invoked by the compiler therefore the programmer freed from the headache of calling them manually.
Continue reading “C Language Constructors and Destructors with GCC”

WordPress.com has a very nice stat plugin showing the overall post views data and also post by post, but it would be always great if there was more. A lot of people talk about introducing Google Analytics. A lot of people save the data offline by copying the summary tables into files to save the site data. I had an idea to process the data of my site a bit differently and find trends in the data. I thought except copy-pasting the site summary data, there should be a cleaner manner to store the data. First I made a brief Google search, then made a
I was keeping myself updated and was watching portions of the matches casually but I started watching the matches seriously from the semi-finals. The Ind v Pak match was a fine one (although the next day was one final examination). India-Pakistan matches have always been high-voltage matches. After defeating Pakistan I was feeling like it was the 2003 world cup, India again in the finals. 2003 final match was a painful memory, India was loosing from the very first moment. But in 2011 things have changed Australia is eliminated, and India is the one to do this cleaning job.