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 / manishsoni
it will print 50 because:
if(200>100)//condition true;
then x=1
and show in memory like this
___ ____
| | | |
x | 1 | then replace x| 50 |
|___| with |____|
100 100
so print the 50 value.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
Explain why C language is procedural?
What is indirection?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
Ow can I insert or delete a line (or record) in the middle of a file?
Explain null pointer.
What is a example of a variable?
Is c still used?
What is s or c?
Do variables need to be initialized?
What is the purpose of sprintf() function?
How does selection sort work in c?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
How can I read and write comma-delimited text?