Skip to content

Instantly share code, notes, and snippets.

@mirekfranc
Created April 24, 2015 20:08
Show Gist options
  • Save mirekfranc/2b5b6fc3fac2a79942a9 to your computer and use it in GitHub Desktop.
Save mirekfranc/2b5b6fc3fac2a79942a9 to your computer and use it in GitHub Desktop.
One difference between C and C++
#include <stdio.h>
int a; /* tentative definition (in C, not C++)*/
int a = 42;
int main (void)
{
printf ("%d\n", a);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment