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 a stack? How it can be implemented?
Write a Program for find and replace a character in a string.
What is stl containers in c++?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
What is the purpose of templates in c++?
Which c++ operator cannot overload?
Differentiate between a constructor and a destructor in c++.
What is setiosflags c++?
what are the types of Member Functions?
Will rust take over c++?
How can you say that a template is better than a base class?
You want to link a c++ program to c functions. How would you do it?
Describe linked list using C++ with an example.
Which programming language is best to learn first?
How would you use the functions memcpy(), memset(), memmove()?