Fwd: Bug fixing - Excellent one!!!

0 views
Skip to first unread message

Navaneetha Krishnan Muthunambu

unread,
Jan 10, 2010, 11:02:39 PM1/10/10
to bnecm...@googlegroups.com


---------- Forwarded message ----------
From: Punithan M <punit...@tcs.com>
Date: Jan 8, 2010 9:07 PM
Subject: Bug fixing - Excellent one!!!
To:


 


Punithan M
Assistant Systems Engineer-Trainee
Tata Consultancy Services
Cell:- +919952165160
Mailto: punit...@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________

 





Remove this bug from code...

############ ######### ######### ######### ######### ######### #

#include
< stdio.h >
#define LAST 10


int main()
{
int i, sum = 0;
 
cid:1.1006612021@web8608.mail.in.yahoo.com
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;

/*

cid:2.1006612021@web8608.mail.in.yahoo.com*/
for ( i = 1; i < = LAST; i++ )
{
sum += i;
}


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




 





 
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


Image._1_05ECABA805ECA5DC00369BE365257693.gif
Image._1_067171FC06716C0C00369BE365257693.gif
Reply all
Reply to author
Forward
0 new messages