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...

What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;

Answer Posted / priya

Logically it is wrong ,because relational operator(==) is
used to check the condition/expression
if(x==6) then the result of y is 1

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I discover how many arguments a function was actually called with?

1116


Array is an lvalue or not?

1194


What is huge pointer in c?

1145


How can you restore a redirected standard stream?

1182


What is the difference between a string and an array?

1265


write an algorithm to display a square matrix.

2764


What is null pointer constant?

1283


What is masking?

1216


Explain how can you tell whether two strings are the same?

1081


What are the restrictions of a modulus operator?

1174


Is main is user defined function?

1216


How can you find out how much memory is available?

1116


What is the difference between malloc calloc and realloc in c?

1193


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2752


What is extern storage class in c?

1059