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
What are c++ redistributables?
What are the advantages of prototyping?
What is a manipulator in c++?
What is c++ w3school?
What are the different types of comments allowed in c++?
What is vectorial capacity?
What do you mean by funtion prototype?
What are disadvantages of pointers?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
which of the following is not an secondary constant a) array b) real c) union
What is the use of endl?
What are the types of array in c++?
What are put and get pointers?
Can you declare an array without a size in c++?
Is java made in c++?