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 difference c and c++?
Explain the difference between 'operator new' and the 'new' operator?
What is a reference in C++?
When is a template a better solution than a base class?
What is object in c++ example?
What is the output of printf("%d")?
58 Answers CTS, HCL, Infosys, TCS, Winit, Wipro,
What are the techniques you use for debugging?
What is an associative container in c++?
What is c++ code?
How many namespaces are there in c++?
if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3
What is a float in c++?