Sullivan Market

a web based full-circle development system



My C++ Tutorials - Declaring Global & Local Variables

Declaring Varialbes:
    There are two main types of variables, global and local. Global variables are able to be accessed from anywhere within the program. Local variables are only able to be accessed within a specific function of a program Take a look at some of these variable declarations below.


char //Character -- 8 bits
int //Integer -- 16 or 32 bits
long int //Long Integer -- 32 bits
short int //Short Integer -- 8 or 16 bits
float //Single-precision floating point -- 32 bits
double //Double-precision floating point -- 64 bits
long double //Single-precision floating point -- 80 bits

Back To C++ Tutorials

©2012 SullivanMarket.com