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

What is the difference between mutex and binary semaphore?

1299


Can you Mention some Application of C/C++?

1130


Write a program using display() function which takes two arguments.

1125


What is the operator in c++?

1179


Is arr and &arr are same expression for an array?

1103


What is the full form of india?

1210


What is general form of pure virtual function? Explain?

1043


What are the two types of comments?

1052


Explain polymorphism?

1125


If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?

1202


Explain the virtual inheritance in c++.

1116


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1127


What are the various operations performed on stack?

1154


Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

1504


When do we run a shell in the unix system? How will you tell which shell you are running?

1030