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

Why did you leave your last job?

2 Answers  


What is the most useful programming language?

0 Answers  


What will happen if a pointer is deleted twice?

0 Answers   Agilent, HAL,


How would you find out if a linked-list is a cycle or not?

0 Answers  


What are member functions used in c++?

0 Answers  






Where Malloc(), Calloc(), and realloc() does get memory?

0 Answers  


What is oops in c++?

0 Answers  


write a programme to get a character and thier ASCII value

0 Answers  


When there is a global variable and local variable with the same name, how will you access the global variable?

0 Answers  


What are the characteristics of friend functions?

0 Answers  


Can the creation of operator** is allowed to perform the to-the-power-of operations?

0 Answers  


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

0 Answers  


Categories