Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2587


What is ctrl c called?

1045


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1969


What are identifiers in c?

1202


Is there a way to switch on strings?

1085


explain what is a newline escape sequence?

1089


What is function definition in c?

1077


List the variables are used for writing doubly linked list program.

2034


How can you tell whether a program was compiled using c versus c++?

1106


What is difference between structure and union?

1130


What is masking?

1151


How many types of operators are there in c?

1039


Tell me is null always defined as 0(zero)?

1087


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

1169


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2075