Skip to content

Instantly share code, notes, and snippets.

@epitron
Created December 1, 2014 04:34
Show Gist options
  • Save epitron/2a41826f2ce5b2bd7228 to your computer and use it in GitHub Desktop.
Save epitron/2a41826f2ce5b2bd7228 to your computer and use it in GitHub Desktop.
A C "downto" operator, made of regular C syntax.
#include <stdio.h>
int main() {
int x = 10;
while (x --> 0) { // x downto 0
printf("%d ", x);
}
}
@paulwratt
Copy link

nice, really nice, and usable to boot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment