is there any difference in following two instructions:
int a;
extern int a;
C
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Wim SturkenboomRank #2,527 · 554 reputationPosted Sep 21, 2014, 12:05 PM EDT
If I recall correctly, you will get errors during the linking phase if int a does not exist and the compiler encounters extern int a.