Hi,
What is the difference between extern and global variables?
Hi,
What is the difference between extern and global variables?
Well extern is what you use to tell part of a program that a global variable exists somewhere else in another part of the program.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.