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


Please Help Members By Posting Answers For Below Questions

What is the best organizational structure?

639


What is the difference between strcpy() and memcpy() function in c programming?

626


What is #line in c?

559


What is c system32 taskhostw exe?

582


Why are all header files not declared in every c program?

600






Why n++ execute faster than n+1 ?

1841


What is the difference between the local variable and global variable in c?

527


The statement, int(*x[]) () what does in indicate?

642


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

1647


Are the variables argc and argv are always local to main?

570


how to execute a program using if else condition and the output should enter number and the number is odd only...

1653


What is the use of the function in c?

595


what is the basis for selection of arrays or pointers as data structure in a program

3786


What is #include stdlib h?

613


What is console in c language?

603