Skip to content

Instantly share code, notes, and snippets.

@timabell
Forked from tvararu/heresy.c
Created September 10, 2019 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timabell/0ee42f1fa956d78814fe92acdb36c2aa to your computer and use it in GitHub Desktop.
Save timabell/0ee42f1fa956d78814fe92acdb36c2aa to your computer and use it in GitHub Desktop.
//
// Compile with:
// gcc -std=c99 heresy.c
//
// Run with:
// ./a.out
//
// It outputs:
// 0
//
// More info: https://en.wikipedia.org/wiki/Digraphs_and_trigraphs#C
//
#include <stdio.h>
int main() {
int a = 0;
// Will the next line be executed????????????????/
a++;
printf("%d\n", a);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment