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

as the value of "a" increases after printing the value.
so it will print the value
0
1
2
3
4
but after printing the value 4 ,it becomes 5 for the next iteration.
so the condition becomes false.
the loop will not execute any more.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is binary tree in c?

1106


What is main return c?

1004


Write a factorial program using C.

1087


Why do some versions of toupper act strangely if given an upper-case letter?

1078


What are file streams?

1020


what are enumerations in C

1163


What is wild pointer in c with example?

1064


Can we access the array using a pointer in c language?

1050


Is there any demerits of using pointer?

1075


What is logical error?

1128


Can you assign a different address to an array tag?

1177


Which function in C can be used to append a string to another string?

1222


What are the advantages of union?

1071


What are the uses of a pointer?

1153


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

2096