/*A IMPLEMENTATION WHAT WILL DO "=" ASSIGNMENT OPERATOR IS USED IN IF CONDITIOON*/
#include<stdio.h>
int main()
{
int x,y=9,z=6;
if(z=y==8)//z=1 if y==8 condition TRUE//THIS WILL CHECK THE CONDITION 1ST & IF CONDITION IS TRUE THEN 1 VALUE IS ASSIGNED TO Z AS FOR TRUE CONDITION..& IF CONITION IS FALSE...0 VALUE IS ASSIGNED TO Z...//
x=3;
printf("z=%d\n",z);//z=22
if(z=y>0)//z=1 if y>0 condition is TRUE
x=3;
if(z=y<0)//z=0 if y<0 condition is FALSE
x=3;
z=22;
if(x=y=z)//THIS WILL DO 1ST ASSIGNMENT OF VALUES & (THEN ALL THE VARIABLES WILL HAVE SAME VALUE)THEN CHECK THE CONDITION..THEN X=7 IS overritten on x=22 DUE TO IF CONDITION... ...