Skip to content

Instantly share code, notes, and snippets.

@jeremytregunna
Created October 13, 2011 01:58
Show Gist options
  • Save jeremytregunna/1283149 to your computer and use it in GitHub Desktop.
Save jeremytregunna/1283149 to your computer and use it in GitHub Desktop.
Salute to Dennis Ritchie
#include <stdio.h>
#include <stdlib.h>
int main(argc, argv)
int argc;
char** argv;
{
char foo[3] = { 'b', 'y', 'e' };
printf("%s\n", foo);
return 0;
}
@jeremytregunna
Copy link
Author

Indeed. Was either that code, or something like this:

printf("bye%s\n");

To salute Dennis Ritchie :)

Since the code in the gist is unlikely to trigger a compiler warning (maybe with -Wall) I opted for it instead.

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