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 are the different types of variables in C++?
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v
What are all predefined data types in c++?
Write a program which uses functions like strcmp(), strcpy()? etc
What is format for defining a structure?
What are the uses of static class data?
What do you understand by zombie objects in c++?
Is the declaration of a class its interface or its implementation?
What is private public protected in c++?
What is endl c++?
What is the difference between structure and class?
Why is c++ is better than c?