Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

#include<stdio.h>
main()
{int i=1;j=1;
for(;;)
{if(i>5)
break;
else
j+=1;
printf("\n%d",j)
i+=j;
}
}

Answer Posted / sourav basu

1 1

print statement is printing 'j', not 'i'. and the for loop works on the basis of value of 'i'..
tested and verified answer on gcc compiler

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is flag a keyword in c?

1218


Explain what are multibyte characters?

1257


How do you do dynamic memory allocation in C applications?

1141


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1483


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

1161


Can you assign a different address to an array tag?

1216


What is the use of #include in c?

1133


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1329


What is hashing in c language?

1428


Without Computer networks, Computers will be half the use. Comment.

2359


Subtract Two Number Without Using Subtraction Operator

910


What is ctrl c called?

1103


How can I remove the trailing spaces from a string?

1124


Is a house a shell structure?

1218


What is non linear data structure in c?

1076