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 is enum class in c++?

1178


How do I exit turbo c++?

1002


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2273


What is the full form nasa?

1030


What are smart pointers?

2161


Explain deep copy?

993


What is a class template in c++?

1001


What is array give example?

988


What do you mean by friend class & friend function in c++?

1009


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1946


What is the best c++ book for beginners?

1089


How the programmer of a class should decide whether to declare member function or a friend function?

1063


What is a constant reference?

1020


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

2300


Define pre-condition and post-condition to a member function in c++?

1087