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...


Given the following seqment of code containing a group of
nested if instructions: y = 9; if ((x==3) || (x == 5)) y++;
else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8;
if the value of x is 4 before the nested IFs are executed,
what is the value of y after the nested IFs are executed?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What are the basic data types used in c++?

0 Answers  


What are the various storage classes in C++?

0 Answers   Fidelity,


If a header file is included twice by mistake in the program, will it give any error?

0 Answers  


What is setf in c++?

0 Answers  


Write a program and call it sortcheck.cpp which receives 10 numbers from input and checks whether these numbers are in ascending order or not. You are not allowed to use arrays. You should not define more than three variables

2 Answers   BirlaSoft, Crayonz,


What are the different data types present in C++?

4 Answers  


Do you know about latest advancements in C++ ?

0 Answers   Agilent, ZS Associates,


Implement a 2 dimensional array by one dimentional array

1 Answers   CTS,


What do you understand by a pure virtual member function?

0 Answers  


Differentiate between declaration and definition in C++?

1 Answers  


Check for Balanced Parentheses using Stack?

1 Answers  


What is difference between c++ 11 and c++ 14?

0 Answers  


Categories