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 operator is used to access a struct through a pointer a) >> b) -> c) *
Why c++ is created?
If I is an integer variable, which is faster ++i or i++?
Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D
What is #include cstdlib in c++?
What is iterator in c++?
In a function declaration what does extern means?
How are the features of c++ different from c?
What is set in c++?
What is the extraction operator and what does it do?
Out of fgets() and gets() which function is safe to use and why?
Differentiate between a copy constructor and an overloaded assignment operator.
How do you remove an element from a set in c++?
What is meant by a delegate?
What is c++ hiding?