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


Please Help Members By Posting Answers For Below Questions

Give 10 points of differences between C & C++.

737


Does c++ vector allocate memory?

630


What happens when the extern "c" char func (char*,waste) executes?

724


What is #include cstdlib in c++?

770


What is the identity function in c++? How is it useful?

650






What are c++ files?

683


What's the best free c++ profiler for windows?

720


How do you save a c++ program?

659


Can we distribute function templates and class templates in object libraries?

675


How does code-bloating occur in c++?

836


Describe protected access specifiers?

775


What is the use of setfill in c++?

678


What can I safely assume about the initial values of variables which are not explicitly initialized?

714


Can c++ do everything c can?

695


Difference between a homogeneous and a heterogeneous container

762