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 / mahendra giri

y will be 7 because in the if condition we have assigned
value 6 on x not ==,so ans of
y =7

Is This Answer Correct ?    40 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

pierrot's divisor program using c or c++ code

2222


Write a program to find the biggest number of three numbers in c?

1033


What is pointer & why it is used?

1098


What is c programming structure?

1177


What is bubble sort technique in c?

965


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1902


What are directives in c?

950


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

1191


Explain 'far' and 'near' pointers in c.

1126


Write a factorial program using C.

1062


How many types of sorting are there in c?

1041


what do you mean by enumeration constant?

997


Does c have an equivalent to pascals with statement?

990


What is boolean in c?

1076


Why is void main used?

1082