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

Write a corrected statement in c++ so that the statement
will work properly. if (x > 5); y = 2*x; else y += 3+x;

Answer Posted / rose

if(x>5)
{
y=2*x
}
else
{
int temp;
temp=3+x;
y+= temp;
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c++ redistributables?

998


What are the advantages of prototyping?

1021


What is a manipulator in c++?

1186


What is c++ w3school?

1070


What are the different types of comments allowed in c++?

949


What is vectorial capacity?

1132


What do you mean by funtion prototype?

1027


What are disadvantages of pointers?

1002


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

931


which of the following is not an secondary constant a) array b) real c) union

1776


What is the use of endl?

936


What are the types of array in c++?

1111


What are put and get pointers?

1083


Can you declare an array without a size in c++?

986


Is java made in c++?

1026