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

What are the header files used in c language?

995


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1883


Write the syntax and purpose of a switch statement in C.

1039


What is the use of ?

994


Difference between MAC vs. IP Addressing

1095


How can I make it pause before closing the program output window?

990


What is the purpose of clrscr () printf () and getch ()?

1023


Hi can anyone tell what is a start up code?

2000


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1378


write a program to find the given number is prime or not

4657


What is the difference between malloc() and calloc() function in c language?

1029


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1155


What is a function in c?

1485


List the difference between a "copy constructor" and a "assignment operator"?

958


In C programming, what command or code can be used to determine if a number of odd or even?

990