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 > 5); y = 2*x; else y += 3+x;



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

Answer / rose

if(x>5)
{
y=2*x
}
else
{
int temp;
temp=3+x;
y+= temp;
}

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C++ General Interview Questions

what is data abstraction in C++?

0 Answers  


What is rvalue?

0 Answers  


Evaluate !(1&&1||1&&0) a) Error b) False c) True

0 Answers  


Implement strcmp

3 Answers   Bloomberg, Citadel,


the maximum length of a character constant can be a) 2 b) 1 c) 8

0 Answers  


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

0 Answers  


What is using namespace std in cpp?

0 Answers  


What's the most powerful programming language?

0 Answers  


Is c++ map a hash table?

0 Answers  


What is endianness?

0 Answers  


Describe run-time type identification?

1 Answers  


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

0 Answers  


Categories