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 c++ and its uses?
Why are pointers used?
Explain RAII (Resource Acquisition Is Initialization).
Describe public access specifiers?
What is the difference between the functions memmove() and memcpy()?
How do you declare A pointer to a function which receives nothing and returns nothing
When should we use multiple inheritance?
What is data types c++?
What is the best c++ book for beginners?
What is difference between n and endl in c++?
What is expression parser in c++
Are php strings immutable?