Rank of && and ||

From: Masayuki Etoh (etoh@awa.tohoku.ac.jp)
Date: Wed Mar 01 2000 - 08:09:13 MET


Dear ROOTers,

I tried the following macro on ROOT-2.23/11 and cint, I got "FALSE".
It should be "TRUE", right?

Best Regards,
Etoh

========================================================================
{
  int a=1;
  if (a==0 && a==0 || a==1) {
    printf("TRUE\n");
  } else {
    printf("FALSE\n");
  }
}
========================================================================



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:20 MET