This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

if condition

Hello,
I was compiling my firmware program written in
C using Keil microVision2 V2.4 compiler.
The target is c8051F120 microcontroller.

I noticed that the compiler accepted the following:
if (A == B, 1) {;}

Does anyone know why? I would think that a syntatically error is committed here.

Thanks in advance.

HL

Parents
  • I insert [inserted for the benefit of those who are more interested in my language that facts] to save you from having to spew your bile, but yoiu just had to do so any7how,

    As I pointed out in reply I am not interested in your language or opinion. Facts would be of interest, but as usual your posts in this thread failed to contain any. Unusually you seemed to be aware that this was the case and made it clear that you were posting opinion. For reaching that basic level of self-awareness I congratulate you.

Reply
  • I insert [inserted for the benefit of those who are more interested in my language that facts] to save you from having to spew your bile, but yoiu just had to do so any7how,

    As I pointed out in reply I am not interested in your language or opinion. Facts would be of interest, but as usual your posts in this thread failed to contain any. Unusually you seemed to be aware that this was the case and made it clear that you were posting opinion. For reaching that basic level of self-awareness I congratulate you.

Children