my question is , where & when are static
and extern
used ?
ArashVenus
Recommended Answers
Jump to Post@mike so simply by using static in every function we mean that we want this variable to be related to the function only
No -- variables declared within a function are never visible to other functions, and they are auto destroyed as soon as the function returns to …
All 4 Replies
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
ArashVenus
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured 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.