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
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
What is c standard library?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
what are the different storage classes in c?
What is the argument of a function in c?
What is a method in c?
What is a struct c#?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
Do character constants represent numerical values?
What is the difference between printf and scanf )?
What is structure padding in c?
will u please send me the placement papers to my mail???????????????????
What is the 'named constructor idiom'?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
How to set file pointer to beginning c?