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
what do the 'c' and 'v' in argc and argv stand for?
What is wrong with this initialization?
Why n++ execute faster than n+1 ?
Explain built-in function?
Explain what are its uses in c programming?
What is structure in c language?
List out few of the applications that make use of Multilinked Structures?
what is the function of pragma directive in c?
Write a program to show the change in position of a cursor using c
What is c token?
Why we use conio h in c?
Why we use void main in c?
Is that possible to add pointers to each other?
What is null pointer constant?
What is masking?