Skip to content

Instantly share code, notes, and snippets.

@mingyc
Created March 22, 2012 06:05
Show Gist options
  • Save mingyc/2156592 to your computer and use it in GitHub Desktop.
Save mingyc/2156592 to your computer and use it in GitHub Desktop.
A buggy program that won't work on Windows but work on Un*x-like system
#include <stdio.h>
int main()
{
int i;
char strings[4][8];
for (i = 3; i >= 0; i--)
scanf("%s", strings[i]);
for (i = 0; i < 4; i++)
printf("%s\n", strings[i]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment