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
How can I dynamically allocate arrays?
What is hash table in c?
What is a macro?
What is double pointer in c?
What is malloc and calloc?
What is structure in c definition?
What is function prototype in c with example?
What does int main () mean?
Which are low level languages?
What is the difference between formatted&unformatted i/o functions?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
How are variables declared in c?
Explain bit masking in c?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Are pointers integer?