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

Incase of a function declaration, what is extern means?

951


Explain the difference between realloc() and free() in c++?

999


What things would you remember while making an interface?

993


What is an accessor in c++?

1063


What is a container class?

1117


What is c++ in english?

1051


By using c++ with an example describe linked list?

1013


Differentiate between an array and a list?

1165


What is c++ used for in games?

1155


What is class and structure in c++?

1151


How would you use the functions sin(), pow(), sqrt()?

1168


Explain the static storage classes in c++.

1251


Can constructor be private in c++?

1032


How can I learn c++ easily?

1059


Why cout is used in c++?

1022