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 / nila
the right answer is x=50,why?.if condition is true
and then after checking if condition x is assigned a value
of 50.so the final answer is 50.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How can I use a preprocessorif expression to ?
Do you know pointer in c?
What is pass by value in c?
Describe the difference between = and == symbols in c programming?
How can a string be converted to a number?
Process by which one bit pattern in to another by bit wise operation is?
what is stack , heap ,code segment,and data segment
how can use subset in c program and give more example
Explain Basic concepts of C language?
What does 4d mean in c?
What is anagram in c?
What is an lvalue in c?
There seem to be a few missing operators ..
all c language question
What is the code in while loop that returns the output of given code?