News for hackers. Stuff that matters.
Re:Having fun abusing the C language by 0xmohit on Tuesday October 25, 2016 @01:20PM (#12789752)
Thankfully trigraphs [0] aren't enabled in compilers such as gcc by default else the following would print "oops":

  #include <stdio.h>
  int main() {
      if ('|' != '??!') {
          printf("ok");
      }
      else {
          printf("oops");
      }
      return 0;
  }
[0] https://en.wikipedia.org/wiki/Digraphs_and_trigraphs
Re:Having fun abusing the C language by ufo on Tuesday October 25, 2016 @01:43PM (#12789937)
Didn't you mean != instead of == ?
Re:Having fun abusing the C language by 0xmohit on Tuesday October 25, 2016 @02:05PM (#12790107)
Yes, indeed. Thanks, fixed.