---------- 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:-
+919952165160Mailto:
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;

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;
=====-----=====-----=====
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