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

Explain Text Manipulation Routines?

1042


What is the real purpose of class – to export data?

1059


What are destructors?

944


Why c++ is faster than java?

1008


What is object file? How can you access object file?

1126


Why do we use vector in c++?

1007


Define basic type of variable used for a different condition in C++?

1050


What does obj stand for?

1091


Explain the problem with overriding functions

1094


What are the advantages of using typedef in a program?

1103


Does c++ have string data type?

1060


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

1016


what is VOID?

1012


What is a binary file? List the merits and demerits of the binary file usagein C++.

1234


Is c++ still being used?

969