Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How are Structure passing and returning implemented by the compiler?

0 Answers  


In C++ cout is: a) object b) class c) something else

11 Answers   Infosys, Lehman Brothers,


Define a program that reads two matrices of size 3x3 with real values from the user then prints their sum, difference and multiplication.

0 Answers   TCS,


What are the different types of variables in C++?

1 Answers  


What is a binary file? List the merits and demerits of the binary file usagein C++.

0 Answers  


What is a dll entry point?

0 Answers  


What are static variables?

0 Answers  


Why are pointers used?

0 Answers  


What is malloc in c++?

0 Answers  


How would you use the functions randomize() and random()?

0 Answers  


When the design recommends static functions?

2 Answers   Symphony,


Will c++ be replaced?

0 Answers  


Categories