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
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
List a few unconditional control statement in c.
what will be maximum number of comparisons when number of elements are given?
write a program to concatenation the string using switch case?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Who invented bcpl language?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
int far *near * p; means
What is void c?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Write a program on swapping (100, 50)
What is main function in c?
When should the const modifier be used?
What are header files why are they important?
What are data structures in c and how to use them?