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 / vijay r15

In c non zero values
in if statement r
considered to be true

here if(i=6)
so it makes if(6)
hence its true

op is 7

if 1ly execute false
for if(0)

got it
r
mail to
raj.Vijay55@gmail.Com

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I convert a number to a string?

1258


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1068


Explain how are portions of a program disabled in demo versions?

1180


What are Macros? What are its advantages and disadvantages?

1228


What is the difference between new and malloc functions?

1185


Using which language Test cases are added in .ptu file of RTRT unit testing???

4360


What is file in c preprocessor?

1199


What are bitwise shift operators in c programming?

1141


What does printf does?

1324


Where we use clrscr in c?

1190


What is the correct code to have following output in c using nested for loop?

1127


What is the use of getchar functions?

1235


How will you delete a node in DLL?

1344


Is c still relevant?

1142


How important is structure in life?

1155