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 is enum class in c++?
How do I exit turbo c++?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
What is the full form nasa?
What are smart pointers?
Explain deep copy?
What is a class template in c++?
What is array give example?
What do you mean by friend class & friend function in c++?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
What is the best c++ book for beginners?
How the programmer of a class should decide whether to declare member function or a friend function?
What is a constant reference?
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
Define pre-condition and post-condition to a member function in c++?