Can some one tell me that global variable are static bydefault or not?
Neelam_1 0 Newbie Poster
Recommended Answers
Jump to PostThe default is non-static.
Jump to PostThe quote you posted does NOT say globals are static by default, it says just the opposite. "external linkage" means that if there are two *.c files, say A.c and B.c, a global variable declared in A.c can be used in B.c. In B.c you declare the variable as extern.
…
All 6 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Neelam_1 0 Newbie Poster
Adak 419 Nearly a Posting Virtuoso
Neelam_1 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Neelam_1 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.