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
What is the best organizational structure?
What is the difference between strcpy() and memcpy() function in c programming?
What is #line in c?
What is c system32 taskhostw exe?
Why are all header files not declared in every c program?
Why n++ execute faster than n+1 ?
What is the difference between the local variable and global variable in c?
The statement, int(*x[]) () what does in indicate?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
Are the variables argc and argv are always local to main?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What is the use of the function in c?
what is the basis for selection of arrays or pointers as data structure in a program
What is #include stdlib h?
What is console in c language?