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 the difference between functions abs() and fabs()?

1207


Why is it that not all header files are declared in every C program?

1281


What are c preprocessors?

1241


What are the primitive data types in c?

1131


What is the basic structure of c?

1154


What is 2 d array in c?

1087


What is the benefit of using #define to declare a constant?

1150


where are auto variables stored? What are the characteristics of an auto variable?

1103


What does the error message "DGROUP exceeds 64K" mean?

1276


write a c program to find the sum of five entered numbers using an array named number

2203


Write a program that accept anumber in words

1811


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2466


What is the explanation for prototype function in c?

1032


Did c have any year 2000 problems?

1156


How do I swap bytes?

1120