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
Explain terminate() function?
Which uses less memory? a) struct astruct { int x; float y; int v; }; b) union aunion { int x; float v; }; c) char array[10];
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
Can we delete this pointer in c++?
What is the Diffrence between a "assignment operator" and a "copy constructor"?
What is the type of this pointer in c++?
Is java a c++?
Difference between shift left and shift right?
What are the different types of polymorphism?
What is the output of the following 3D Array int arr[3][2][2]={1,2,3,4,5,6,7,8,9,10,11,12}; what is the output for arr[2][1][0]?
6 Answers HCL, Integra, IPMC, ORG,
How do you write a function that can reverse a linked-list?
If you don’t declare a return value, what type of return value is assumed?