Yes.
if((ifd=open(filename,O_RDONLY))<3)
means:
1. assign the value returned by open to ifd
2. compare it to 3
whereasif(ifd=open(filename,O_RDONLY)<3)
means:
1. compare the value returned by open to 3
2. assign the boolean result of the comparison to ifd
Thanks
that clarified it.