scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

0243-ternary.c (116B)


      1 int but, aclick;
      2 
      3 int
      4 main(void)
      5 {
      6 	int r;
      7 
      8 	r = 0;
      9 	if (aclick == 1 && but)
     10 		r = (but == 1) ? 0 : 1;
     11 	return r;
     12 }