20 Jun, 2010 in PJ's by FunN2sHh

Latest Bug and Bug Fix

Latest Bug spreading around these days, check it out.

#include
#define LAST 10

int main()
{
int i, sum = 0;
Latest Bug and Bug Fix
for ( i = 1; i < = LAST; i++ )
{
sum += i;
}

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

Seriously Irritating, isn’t it??

Below we have the bug fix,

*

**

***

****

*****

******

*******

********

*********

**********

*********

********

*******

******

*****

****

***

**

*

#include stdio.h;
#define LAST 10

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

Latest Bug and Bug Fix // Fixed. Doesn’t move anymore.

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

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



No Responses so far | Have Your Say!

Leave a Feedback

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Get Adobe Flash playerPlugin by wpburn.com wordpress themes