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
What are the rules for identifiers in c?
Explain what is #line used for?
How can you allocate arrays or structures bigger than 64K?
How to implement a packet in C
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
Why does not c have an exponentiation operator?
What is the c language function prototype?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What is FIFO?
Give differences between - new and malloc() , delete and free() ?
What is the translation phases used in c language?
How can you find the exact size of a data type in c?
What is the process to generate random numbers in c programming language?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What are the different types of pointers used in c language?