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 is time_t c++?

0 Answers  


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

0 Answers  


What is the Difference between "printf" and "sprintf"?

7 Answers   iSoft, PentaWare, TCS,


What is pure virtual function? Or what is abstract class?

0 Answers  


What is a pdb file?

0 Answers  






What is the difference between an external iterator and an internal iterator?

0 Answers  


what is Loop function? What are different types of Loops?

0 Answers  


reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it

2 Answers  


What are maps in c++?

0 Answers  


what is difference between static and non-static variables

10 Answers  


What jobs can you get with a c++ certification?

0 Answers  


What is an incomplete type?

1 Answers  


Categories