Write a corrected statement in c++ so that the statement
will work properly. if (x > 5); y = 2*x; else y += 3+x;
Answer / rose
if(x>5)
{
y=2*x
}
else
{
int temp;
temp=3+x;
y+= temp;
}
| Is This Answer Correct ? | 3 Yes | 1 No |
What is time h in c++?
What is the difference between function overloading and operator overloading?
Explain the concept of copy constructor?
What is flag in computer?
What is a "Copy Constructor"?
What will happen if a pointer is deleted twice?
Which is best ide for c++?
What is a manipulator in c++?
Please explain class & object in c++?
Give 10 points of differences between C & C++.
If I is an integer variable, which is faster ++i or i++?
What is the copy-and-swap idiom?