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

List the merits and demerits of declaring a nested class in C++?

0 Answers  


Explain the virtual inheritance in c++.

0 Answers  


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

0 Answers  


Compare compile time polymorphism and Runtime polymorphism

1 Answers  


How does code-bloating occur in c++?

0 Answers  






Which is the best c++ software?

0 Answers  


What is called array?

0 Answers  


What are different types of polymorphism supported by C++

2 Answers   CA, GameLoft,


What is a static element?

0 Answers  


When is the destructor called?

0 Answers  


What is meant by the term name mangling in c++?

0 Answers  


Is std :: string immutable?

0 Answers  


Categories