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

Should you pass exceptions by value or by reference?

692


What is vectorial capacity?

640


Why do we use pointers in c++?

589


What is the purpose of the "delete" operator?

622


Explain all the C++ concepts using examples.

684






Write a program to interchange 2 variables without using the third one.

579


What is a pointer how and when is it used?

572


What are the basics of local (auto) objects?

630


What is an associative container in c++?

542


What are the various compound assignment operators in c++?

546


What is const in c++?

592


Define the operators that can be used with a pointer.

569


How to give an alternate name to a namespace?

587


Can I make ios apps with c++?

553


Is java easier than c++?

584