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 is the extension of c++?

0 Answers  


Where are setjmp and longjmp used in c++?

0 Answers  


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

0 Answers  


What do nonglobal variables default to a) auto b) register c) static

0 Answers  


What is the use of ::(scope resolution operator)?

0 Answers  






What gives the current position of the put pointer?

0 Answers  


What is the average salary of a c++ programmer?

0 Answers  


What is rvalue?

0 Answers  


What is a manipulator in c++?

0 Answers  


What are punctuators in c++?

0 Answers  


What are single and multiple inheritances in c++?

0 Answers  


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

0 Answers  


Categories