Wednesday 29 November 2017

c - How do I use extern to share variables between source files?

I know that global variables in C sometimes have the
extern keyword. What is an extern
variable? What is the declaration like? What is its
scope?



This is related to sharing variables
across source files, but how does that work precisely? Where do I use
extern?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...