Комментарии:
Why extern . If you declare it as global variable then you would use that in both functions. Why we need to declare extern int in both functions
ОтветитьIs extern variable stored in heap? I think extern variable will stored in Data section
ОтветитьIt would be better if you had showed the use of extern using two separate files of c.
ОтветитьCant understand..,
Ответитьwhat is the difference between global variable and extern variable?
and why to prefer extern over global variable?
You Know?
ОтветитьWhy is it giving a undeclared error when you compile? If extern makes the variable global then it should be able to access it within every function. You have declare extern in a header file to make it accessible within all '.c' files.
Ответитьvery clear and concise. thank you so much for all of your videos.
Ответитьkeep up d good work...vry helpful viedos..:)
Ответить