Visual Studio Code – Undefined reference variable using extern keyword
I have two C files in the same folder: file1.c #include <stdio.h> int a; int main() { a = 1; printf("%d",a); return 0; } file2.c #include <stdio.h> extern int a; int main() { a = 1; printf("%d",a); return 0; }…