Skip to content

Instantly share code, notes, and snippets.

@robstewart57
Last active December 30, 2015 13:59
Show Gist options
  • Save robstewart57/7838981 to your computer and use it in GitHub Desktop.
Save robstewart57/7838981 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(){
int i, j, k;
do {
if (i == 6){
k=0;
}
else{
i++;
}
i=i+k;
j=j+1;
} while (i==j);
printf("%d\n",i);
return i;
}
/*
$ cc simple-branching.c
$ ./a.out
1144737840
$ clang simple-branching.c
$ ./a.out
269027628
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment