About VUPakistan

An ultimate blog with an expanding source of articles, books, videos, softwares, pictures, information and much more.

Another Tit-Bit...

vupakistan.blogspot.com is a home of entertainment, refreshment, news-views, songs, articles, pictures, videos for students and others, so that after hours of studying, they gather at a platform of rich of colors of life and refresh themselves.

Big: How To Fix

Remove this bug from code…………….
#####################################
#include
#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
nt main()
{
int i, sum = 0;
/*




*/
for ( i = 1; i < = LAST; i++ )
{
sum += i;
}
/*-for-*/
printf(”sum = %d\n”, sum);
return 0;
}

0 comments:

Post a Comment



Post a Comment

 

Contact Me

Your Ad Here
ss_blog_claim=d093e2294e8db8a627f42ad7b2e8d659 ss_blog_claim=d093e2294e8db8a627f42ad7b2e8d659