Skip to content

Instantly share code, notes, and snippets.

@kimoto
Created February 24, 2012 03:38
Show Gist options
  • Select an option

  • Save kimoto/1897172 to your computer and use it in GitHub Desktop.

Select an option

Save kimoto/1897172 to your computer and use it in GitHub Desktop.
kazuho.c
#include <stdio.h>
void unko(i){
printf("unko now!: %d\n", i);
}
int main(){
int kazuho = 0;
unko(kazuho++);
// => 0
unko(++kazuho);
// => 2
return 0;
}
/*
kimoto ~[4421]% gcc kazuho.c
kimoto ~[4422]% ./a.out
unko now!: 0
unko now!: 2
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment