Shompod A. answered 05/08/19
Love to teach, love to learn
I can give you a practical use case.
Say, you want to declare a global variable that you want to access and CHANGE in different source files of your project.
then you can use extern keyword to declare in header file. and somewhere else you can actually declare (and define if you want) it. If you just declare it in header file without extern keyword. you will see "variable declared twice" error.