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
How do we make a global variable accessible across files? Explain the extern keyword?
how could explain about job profile
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
What is strcpy() function?
Is there a way to switch on strings?
What are volatile variables in c?
What are reserved words?
Explain what is wrong in this statement?
In a switch statement, what will happen if a break statement is omitted?
Explain pointer. What are function pointers in C?
diff between exptected result and requirement?
What are structures and unions? State differencves between them.
Is c programming hard?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
What are the general description for loop statement and available loop types in c?