L
Larry Gates
[As far as my eyes can tell, this post was dropped.]
Just wanted to make sure of soemthing and couldn't find it in K&R.
q1) External variables are always initialized. (To zero if not explicitly
initialized to another value.)
q2) External variables are declared in the same file, but outside of any
function.
q3) The one that is actually used for initialization is the one that does
not have the extern attribute.
q4) C requires that one not have the extern attribute, and that all others
do have it.
Thanks for your comment.
Just wanted to make sure of soemthing and couldn't find it in K&R.
q1) External variables are always initialized. (To zero if not explicitly
initialized to another value.)
q2) External variables are declared in the same file, but outside of any
function.
q3) The one that is actually used for initialization is the one that does
not have the extern attribute.
q4) C requires that one not have the extern attribute, and that all others
do have it.
Thanks for your comment.