Write a corrected statement in c++ so that the statement
will work properly. if (x = y) x = 2*z;

Answer Posted / rose

if(x==y)
{
x=2*z;
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define private, protected and public access control.

700


Explain linear search.

715


Do class declarations end with a semicolon?

689


What is abstract class in c++?

687


Is main a class in c++?

641






Is c++ a dying language?

689


what is a class? Explain with an example.

753


Can you sort a set c++?

624


What is an undefined behavior and sequence points

662


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

724


Who invented turbo c++?

731


Write a C++ Program to check whether a number is prime number or not?

723


What is size_type?

634


Should the member functions which are made public in the base class be hidden?

658


what is the difference between overloading & overriding? give example.

670