Wednesday, September 10, 2014

Variable Argument Lists in C and C++

If you want to use a function which can take variable number of arguments, you can use variable argument list. For example you want to design a function which accepts any number of integers and returns the average of those integers.You don't know the number of arguments will be passed to the function....

Tuesday, September 9, 2014

How to fix: -Grub rescue (simplest solution)

Just before few days ago, my laptop was fallen down. After when I powered on it , it was showing error, and not allow to boot me any of my OS (windows and ubuntu 12.10 I had ). Error was like this :                   error:attempt to read or write outside of disk 'hd0'.                 ...