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 stoi in c++?
What does catch(…) mean?
what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
What is null c++?
int *p = NULL; printf("%1d",p) ; what will be the output of this above code?
difference between macro and function?
Explain what you mean by a pointer.
Explain the scope resolution operator?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
If a header file is included twice by mistake in the program, will it give any error?