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

Explain how can you tell whether a program was compiled using c versus c++?

571


Subtract Two Number Without Using Subtraction Operator

349


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

647


What are the modifiers available in c programming language?

730


What are pointers? What are different types of pointers?

622






Why does not c have an exponentiation operator?

624


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2717


What extern c means?

529


Explain what are reserved words?

630


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1244


What is the time and space complexities of merge sort and when is it preferred over quick sort?

672


What is the use of #include in c?

570


Explain how can you restore a redirected standard stream?

587


What is the difference between array and pointer in c?

575


Can a pointer be null?

558