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 setf in c++?
What is virtual destructor? What is its use?
What is the identity function in c++? How is it useful?
How do you clear a buffer in c++?
How do you sort a sort function in c++ to sort in descending order?
Define pointers?
What is decltype c++?
Can recursive program be written in C++?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
What is a forward referencing and when should it be used?
How much is c++ certification?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
What is the type of 'this' pointer? When does it get created?
Evaulate: 22%5 a) 2 b) 4 c) 0
What is a terminating character in c++?