BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan Right Header

HOME BZU Mail Box Online Games Radio and TV Cricket All Albums
Go Back   BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan > Entertainment & Enjoyment > Chit Chat

Notices

Chit Chat Everybody loves a bit of randomness, care to share yours? Any one Else can talk here.


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 31-05-2008, 08:19 PM
qadir0108's Avatar

 
Join Date: Jan 2008
Location: Islamabad
Posts: 20
Contact Number: +92-321-6334272
Program / Discipline: Alumni
Class Roll Number: 0108
qadir0108 is on a distinguished road
Send a message via ICQ to qadir0108 Send a message via AIM to qadir0108 Send a message via MSN to qadir0108 Send a message via Yahoo to qadir0108 Send a message via Skype™ to qadir0108
Default How will you Fix this Bug ......?

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

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

Think....

Think Hard ....


And the developer fixes it this way

(As they do for most of the critical bugs)
...
..

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...
..

...

...

..
...

..
..
..
......
..
......
..
..
..
..
....
..
############ ######### ######### ######### ######### ######### #
#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;
}

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























__________________
Kamran Qadir
Reply With Quote
  #2  
Old 31-05-2008, 11:14 PM
BSIT07-01's Avatar
Addicted to Computer


 
Join Date: Sep 2007
Location: ------------
Age: 34
Posts: 1,309
Contact Number: ---------------
Program / Discipline: BSIT
Class Roll Number: 07-01
BSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant future
Default Re: How will you Fix this Bug ......?

Dear I don't know what are these
#include stdio.h;
#define LAST 10

because we have studied only about one header file iostream
we have not even studied about printf....lol

Reply With Quote
Reply

Tags
bug, fix


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Best view in Firefox
Almuslimeen.info | BZU Multan | Dedicated server hosting
Note: All trademarks and copyrights held by respective owners. We will take action against any copyright violation if it is proved to us.

All times are GMT +5. The time now is 02:51 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.