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 do graphics in c?

1039


Write a program which returns the first non repetitive character in the string?

1135


Can main () be called recursively?

1130


What is a nested loop?

1140


What is LINKED LIST? How can you access the last element in a linked list?

1077


what type of questions arrive in interview over c programming?

2035


What is call by value in c?

1014


Explain Function Pointer?

1187


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

1171


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1278


What is the purpose of main() function?

1258


Explain what does it mean when a pointer is used in an if statement?

1076


What is derived datatype in c?

1102


Multiply an Integer Number by 2 Without Using Multiplication Operator

772


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2442