int x;
Is this a declaration or a definition?
As I write the following code,
#include int main(void) {
int x; is a definition. extern int x; is just a declaration. extern int x = 3; is also a definition. HTH
int x
extern int x;
extern int x = 3;