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 an overflow error?

0 Answers  


What is time_t c++?

0 Answers  


What is size of empty class object

5 Answers   CA,


What are the benefits of operator overloading?

0 Answers  


Shall we use 'free' to free memory assigned by new, What are the further consequences??

5 Answers   Symphony,






What is an incomplete type?

1 Answers  


Explain the term memory alignment?

0 Answers  


How to defines the function in c++?

0 Answers  


How to write a program such that it will delete itself after exectution?

3 Answers  


Does c++ have string data type?

0 Answers  


What is the difference between new() and malloc()?

0 Answers  


What are 2 ways of exporting a function from a dll?

0 Answers  


Categories