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

How long does this loop run:

for(int x=0; x=3; x++)
a) Never
b) Three times
c) Forever

Answer Posted / awaneesh dubey

Never . It will show compile time error . boolean required
at the terminationa condition not int . i.e. it should be
for(int x=0; x==3; x++) not for(int x=0; x=3; x++) .
x=3 will cause compilation error. So answer is never .

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are there any special rules about inlining?

1083


What is the use of endl in c++ give an example?

1169


Write about a nested class and mention its use?

1100


Where must the declaration of a friend function appear?

961


What is the benefit of encapsulation?

1077


What is scope resolution operator in c++ with example?

1037


What does catch(…) mean?

1117


If a header file is included twice by mistake in the program, will it give any error?

1049


How new/delete differs from malloc()/free?

1145


What is a .h file c++?

1044


Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.

1052


What is std :: endl?

1033


Differentiate between realloc() and free().

1052


Which function should be used to free the memory allocated by calloc()?

1025


Explain how overloading takes place in c++?

1045