Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

The GNU C Programming Tutorial - Global Variables

Node:Global variables, Next:, Previous:Scope, Up:Scope



Global Variables

Global variables can be used in any function, as well as any block within that function. (Technically, global variables can only be seen by functions that are defined after the declaration of those global variables, but global variables are usually declared in a header file that is included everywhere they are needed.) Global variables are created when a program is started and are not destroyed until a program is stopped.

 
 
  Published under free license. Design by Interspire