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

What is 2c dna?

1081


Create a simple code fragment that will swap the values of two variables num1 and num2.

1289


What are called c variables?

1065


Is int a keyword in c?

984


What is difference between Structure and Unions?

1256


Why static is used in c?

1096


Differentiate between declaring a variable and defining a variable?

1044


Is c is a procedural language?

1098


What is the total generic pointer type?

1159


can we have joblib in a proc ?

2307


What is a global variable in c?

1013


What is else if ladder?

1022


Explain output of printf("Hello World"-'A'+'B'); ?

1499


Explain modulus operator.

1057


Why do we use return in c?

1004