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

Which should be more useful: the protected and public virtuals?

0 Answers  


What is time_t c++?

0 Answers  


What is the default access level?

0 Answers  


What is the difference between strcpy() and strncpy()?

0 Answers  


What is the difference between containment and delegation?

0 Answers  






How is data hiding achieved in c++?

0 Answers  


What is singleton pattern in c++?

0 Answers  


What is function prototyping?

0 Answers  


Differentiate between declaration and definition in C++?

1 Answers  


Is vector a class in c++?

0 Answers  


How do you establish an is-a relationship?

0 Answers  


What language is a dll written in?

0 Answers  


Categories