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 |
i want the NIC programmer-B model papaer pattren, iwant the all model papers?
Do class method definitions?
What is the purpose of ios::basefield in the following statement?
Is there a new/delete equivalent of realloc?
What is ostream in c++?
Can I learn c++ without c?
Explain how we implement exception handling in c++?
What is the extraction operator and what does it do?
Which one is a preferred language C or C++? Why?
What are the advantages of using pointers in a program?
What is lambda expression c++?
Can java be faster than c++?