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 are the differences between a struct in C and in C++?
Why cout is used in c++?
What is the real purpose of class – to export data?
What are the basics concepts of OOPS?
Why was c++ created?
Who made c++?
What is a manipulator in c++?
What is the meaning of string in c++?
Have you used MSVC? What do you think of it?
What is an iterator?
What is runtime polymorphism in c++?
What is boyce codd normal form in c++?