Created
December 1, 2014 04:34
-
-
Save epitron/2a41826f2ce5b2bd7228 to your computer and use it in GitHub Desktop.
A C "downto" operator, made of regular C syntax.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
int x = 10; | |
while (x --> 0) { // x downto 0 | |
printf("%d ", x); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice, really nice, and usable to boot