x=2,y=6,z=6
x=y==z;
printf(%d",x)

Answer Posted / amit

since "=" has a low precedence over "==" .. thus "y==z" will
be evaluated first and the returned value will be stored in
x which will be printed subsequently...

In this case since y equals z, x = 1 will be printed

cheers

AD

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the rules for identifiers in c?

589


Explain what is #line used for?

609


How can you allocate arrays or structures bigger than 64K?

684


How to implement a packet in C

2399


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

942






Why does not c have an exponentiation operator?

630


What is the c language function prototype?

647


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

583


What is FIFO?

677


Give differences between - new and malloc() , delete and free() ?

613


What is the translation phases used in c language?

637


How can you find the exact size of a data type in c?

602


What is the process to generate random numbers in c programming language?

611


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

600


What are the different types of pointers used in c language?

613