How will you Fix a bug !!!!! in a code!!!!
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;
}
############
This entry was posted on at 8:44 AM. You can follow any responses to this entry through the RSS 2.0. You can leave a response.
- No comments yet.