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...


what will be the output of this program
main()
{
int i=1;
while (i<=10);
{
i++;
}
}

Answers were Sorted based on User's Feedback



what will be the output of this program main() { int i=1; while (i<=10); { i++; } } ..

Answer / durgesh

Infinite Loop...

Is This Answer Correct ?    6 Yes 1 No

what will be the output of this program main() { int i=1; while (i<=10); { i++; } } ..

Answer / pervinder sing dinghra

infine loop

Is This Answer Correct ?    4 Yes 1 No

what will be the output of this program main() { int i=1; while (i<=10); { i++; } } ..

Answer / sanjiv

11

Is This Answer Correct ?    3 Yes 2 No

what will be the output of this program main() { int i=1; while (i<=10); { i++; } } ..

Answer / srikanth karnati

there is no output because there is no out statment
there.if write printf("%d",i);at out side the loop the
output will be 11.

Is This Answer Correct ?    2 Yes 1 No

what will be the output of this program main() { int i=1; while (i<=10); { i++; } } ..

Answer / harun

11

Is This Answer Correct ?    1 Yes 1 No

what will be the output of this program main() { int i=1; while (i<=10); { i++; } } ..

Answer / shanmuga priya

10

Is This Answer Correct ?    0 Yes 0 No

what will be the output of this program main() { int i=1; while (i<=10); { i++; } } ..

Answer / dharmendra kumar

It occurs a run time error function should return type.
If return type mentioned, after that nothing will print too, and loop will started infinite.

Is This Answer Correct ?    0 Yes 0 No

what will be the output of this program main() { int i=1; while (i<=10); { i++; } } ..

Answer / niranjan kumar niraj

output is 1

Is This Answer Correct ?    1 Yes 2 No

what will be the output of this program main() { int i=1; while (i<=10); { i++; } } ..

Answer / aswini

answer will be 10.it will never execute the loop as there
is semicolon.hence directly 10 will be assigned to i.

Is This Answer Correct ?    1 Yes 3 No

what will be the output of this program main() { int i=1; while (i<=10); { i++; } } ..

Answer / prashanthi

2

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

What is difference between structure and union in c programming?

0 Answers  


Why flag is used in c?

0 Answers  


Is c easy to learn?

0 Answers  


what is the full form of c language

9 Answers   Satyam, TCS, VNC,


Explain why c is faster than c++?

0 Answers  


how to find greatet of 10 numbers without using array?

4 Answers  


How can I change the size of the dynamically allocated array?

0 Answers  


When can a far pointer be used?

0 Answers  


What does #pragma once mean?

0 Answers   Celstream,


What are the types of type qualifiers in c?

0 Answers  


how to print "hai" in c?

13 Answers   TCS,


What are bit fields? What is their use?

2 Answers   Adobe,


Categories