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 a memory leak c++?
which of the following is not an secondary constant a) array b) real c) union
What do you know about friend class and friend function?
write the programme that convert a interger to biniry number
what are the iterator and generic algorithms.
What is stl containers in c++?
How to detect memory leaks in c++
Why is c++ still popular?
Explain object slicing in c++?
Write a note about the virtual member function?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
What is the difference between "overloading" and "overridding"?