c-basic/redefinition.c

8 lines
123 B
C

#include <stdio.h>
int a = 1;
int main() {
int a = 2;
printf("%d\n", a); // local overrides global
return 0;
}