Saturday, June 28, 2008

Can you fix this BUG??

Source : http://www.ITPepper.com

You would have fixed lot of bugs till today..

If so, there is a challenge for you.. Can you fix this one??


##########################################################
#include
#define LAST 10

int main()
{

int i, sum = 0;






for (i=0; i<=LAST ; i++)
{
sum = sum + i;
}

printf("Sum = %d",sum);

}
########################################################## I know its a tough one.. It could be fixed like this.. Click here to see the fix for this bug.

0 comments:

Please share your 'experience in charity activities' or social activities to www.ForTheSociety.com ,it may inspires others to participate in similar kind of activities. Please mail the information to mail@forthesociety.com
My site was nominated for Best Entertainment Blog!