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

a=0;
while(a<5)
printf("%d\n",a++);
how many times does the loop occurs?
a.infinite
b.5
c.4
d.6

Answer Posted / bharath kumar

Hello,

The answer is b.

a=0+1=1
a=1+1=2
a=2+1=3
a=3+1=4
a=4+1=5

While a variable is storing the 5 result a is nither less
then are equal to 5 hence the application will come out of
the loop.So while loop had run 5 times.

Is This Answer Correct ?    28 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is header file definition?

1147


What are loops c?

1105


What is queue in c?

1161


What is the difference between %d and %i?

1149


What is the use of ?

1088


What does sizeof return c?

1131


How do you use a 'Local Block'?

1230


write a program to generate address labels using structures?

4629


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1427


What is getch c?

1348


What are the main characteristics of c language describe the structure of ac program?

1266


Explain how can you be sure that a program follows the ansi c standard?

1548


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1399


Differentiate between #include<...> and #include '...'

1117


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1431