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
How to implement is-a and has-a class relationships?
Which of the following is evaluated first: a) && b) || c) !
Define token in c++.
What is else if syntax?
How do you invoke a base member function from a derived class in which you have not overridden that function?
Tell me can a pure virtual function have an implementation?
Can create new c++ operators?
Explain abstraction.
What is c++ flowchart?
How do you define a class in c++?
What is the limitation of cin while taking input for character array?
Describe Trees using C++ with an example.
What are the two shift operators and what are their functions?
What is an operator in c++?
What is null pointer and void pointer and what is their use?