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

Answers were Sorted based on User's Feedback



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

Answer / rose

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

Is This Answer Correct ?    1 Yes 1 No

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

Answer / kannan

if(x==y)
printf("x=2*z");

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are pointers used for c++?

0 Answers  


Write a corrected statement in c++ so that the statement will work properly. x + y=z;

2 Answers  


Is c++ fully object oriented?

0 Answers  


Can notepad ++ run c++?

0 Answers  


Describe the process of creation and destruction of a derived class object?

0 Answers  


Can you use the function fprintf() to display the output on the screen?

0 Answers  


What is static function? Explain with an example

0 Answers  


Is c++ a programming language?

0 Answers  


What is java and c++?

0 Answers  


Mention the ways in which parameterized can be invoked.

0 Answers  


What is the difference in size of this two clasees? Class A { int a; char c; float f; } Class B { float f; char c; int a; }

4 Answers  


How should a contructor handle a failure?

0 Answers  


Categories