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
Incase of a function declaration, what is extern means?
Explain the difference between realloc() and free() in c++?
What things would you remember while making an interface?
What is an accessor in c++?
What is a container class?
What is c++ in english?
By using c++ with an example describe linked list?
Differentiate between an array and a list?
What is c++ used for in games?
What is class and structure in c++?
How would you use the functions sin(), pow(), sqrt()?
Explain the static storage classes in c++.
Can constructor be private in c++?
How can I learn c++ easily?
Why cout is used in c++?