read the folllowing code
# define MAX 100
# define MIN 100
....
....
if(x>MAX)
x=1;
else if(x<MIN)
x=-1;
x=50;
if the initial value of x=200,what is the vlaue after
executing this code?
a.200
b.1
c.-1
d.50
Answer Posted / divakar
50. irrespective of the if and else if at last ur assigning
x=50
| Is This Answer Correct ? | 24 Yes | 2 No |
Post New Answer View All Answers
Describe the header file and its usage in c programming?
What are volatile variables in c?
What is #error and use of it?
Difference between Shallow copy and Deep copy?
What is a macro?
What is the difference between arrays and pointers?
What is pass by value in c?
What is the need of structure in c?
Do you know what are the properties of union in c?
What are pragmas and what are they good for?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Can we compile a program without main() function?
Do you have any idea about the use of "auto" keyword?
What is the role of this pointer?
how can f be used for both float and double arguments in printf? Are not they different types?