Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug Fixing.

2 views
Skip to first unread message

UnnatV

unread,
Jan 23, 2010, 10:21:47 AM1/23/10
to
Remove this bug from code...
############ ######### ######### ######### ######### ######### #
#include <stdio.h >
#define LAST 10

int main()
{
int i, sum = 0;

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

/*-for-*/
printf("sum = %d\n", sum);
return 0;
}
############ ######### ######### ######### ######### ######### #


And the developer fixes it this way
..
..
..
..
..
..
..
..
...
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
......
..
......
..
..
..
..
....
..
############ ######### ######### ######### ######### ######### #
#include stdio.h;
#define LAST 10

int main()
{
int i, sum = 0;
/*
*/
for ( i = 1; i < = LAST; i++ )
{
sum += i;
}

/*-for-*/
printf("sum = %d\n", sum);
return 0;
}
############ ######### ######### ######### ######### #########

For greater jokes an fun join the below link!

www.myLot.com?ref=UnnatV

Live life kingsize!


0 new messages