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

Answers were Sorted based on User's Feedback



#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf(..

Answer / jitendra mahajan

2
5

Is This Answer Correct ?    75 Yes 6 No

#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf(..

Answer / vijay pal

2
5

Is This Answer Correct ?    18 Yes 0 No

#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf(..

Answer / radha raman

2
3

Is This Answer Correct ?    13 Yes 8 No

#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf(..

Answer / fa

1
1
1
1
1

Is This Answer Correct ?    1 Yes 4 No

#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf(..

Answer / 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

#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf(..

Answer / vedansh

2
3

Is This Answer Correct ?    2 Yes 6 No

#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf(..

Answer / ajay

error loop is incomplete

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More C Interview Questions

what is the full form of c language

9 Answers   Satyam, TCS, VNC,


main() { unsigned int k = 987 , i = 0; char trans[10]; do { trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' ); } while(k /= 16); printf("%s\n", trans); }

4 Answers   Vector,


WAP to find that given no is small or capital

3 Answers  


Is struct oop?

0 Answers  


Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

0 Answers  


Differentiate between functions getch() and getche().

0 Answers  


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

0 Answers  


What is the difference between void main and main in c?

0 Answers  


main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }

3 Answers   ME,


What are nested functions in c?

0 Answers  


How can I invoke another program or command and trap its output?

0 Answers  


What is p in text message?

0 Answers  


Categories