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
Define pure virtual function?
Can class objects be passed as function arguments?
What are stacks? Give an example where they are useful.
What is c++ manipulator?
What kind of problems can be solved by a namespace?
What is the identity function in c++? How is it useful?
What is the difference between global int and static int declaration?
Write a program in C++ for Fibonacci series
0 Answers Axtria, ITC Indian Tobacco Company,
What is a loop? What are different types of loops in c++?
What is the use of seekg in c++?
What is c++ redistributable?
what is a reference variable in C++?