Skip to content

Instantly share code, notes, and snippets.

@hannahwhy
Created November 18, 2010 04:05
Show Gist options
  • Select an option

  • Save hannahwhy/704611 to your computer and use it in GitHub Desktop.

Select an option

Save hannahwhy/704611 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
#include <stdio.h>
#define sizeof(n) ((size_t)(rand() % (sizeof(n) + 1)))
int main(int argc, char **argv)
{
int i;
for(i = 0; i < 100; ++i) {
printf("%lu\n", sizeof(int));
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment