c-basic/redefinition.c

8 lines
123 B
C
Raw Normal View History

2022-11-24 21:04:54 +01:00
#include <stdio.h>
int a = 1;
int main() {
int a = 2;
printf("%d\n", a); // local overrides global
return 0;
}