Skip to content

Instantly share code, notes, and snippets.

@goyusia
Created November 13, 2015 16:19
Show Gist options
  • Select an option

  • Save goyusia/000ad3a34cb25c3386dd to your computer and use it in GitHub Desktop.

Select an option

Save goyusia/000ad3a34cb25c3386dd to your computer and use it in GitHub Desktop.
Alternative operator representations (C version)
/*
Reference
* http://en.cppreference.com/w/cpp/language/operator_alternative
$ clang trigraphs.c
*/
%:include <stdio.h>
%:include <stdbool.h>
%:include <iso646.h>
int main(int argc, char *argv<::>)
<%
bool val_a = true;
bool val_b = false;
bool tmp_val = val_a and val_b;
printf("%d\n", tmp_val);
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment