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

Write syntax to define friend functions in C++.

0 Answers   HAL,


Explain the difference between abstract class and interface in c++?

0 Answers  


what does the following statement mean? int (*a)[4]

0 Answers  


Is it possible to use a new for the reallocation of pointers ?

0 Answers  


Why is c++ difficult?

0 Answers  






Differentiate between a constructor and a method in C++.

0 Answers   Tech Mahindra,


Can you declare an array without a size in c++?

0 Answers  


What is #include c++?

0 Answers  


What is input operator in c++?

0 Answers  


What are the advantages and disadvantages of using inline and const?

2 Answers   Polaris, TCS, Zimmer Biomet,


What does it mean to declare a member function as static?

0 Answers  


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

0 Answers   Cankaya University,


Categories