Write a corrected statement in c++ so that the statement
will work properly. if (x = y) x = 2*z;
Answer Posted / kannan
if(x==y)
printf("x=2*z");
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How does the copy constructor differ from the assignment operator (=)?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
What is class in c++ with example?
Which software is best for coding?
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
When should we use multiple inheritance?
What are c++ stream classes?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
Write a program which uses Command Line Arguments
What are the data types in c++?
What is array in c++ pdf?
How do you differentiate between overloading the prefix and postfix increments?
What is lambda in c++?
What are c++ manipulators?
Define the process of handling in case of destructor failure?