Networking, Programming and Graphics Tutorials

Rules for variables - C++ [1/1]

Type:
Rules for variables - C++
Level: Beginner Networking, Programming and Graphics Tutorials 
Rules for variables - C++
Date: 2006-Dec-04
Rules for variables - C++
Visited: 2381 times
Rules for variables - C++
Rating: Rules for variables - C++
Rules for variables - C++
Author: Alex Plumpton

Rules for constructing variable names:

1.A variable name is any combination of 1 to 8 alphabets, digits or underscores.Some compilers allow variable names whose length can be upto 40 characters.
2.The first character in the variable name, must be a alphabet.
3.No commas or spaces are allowed, within a variable name.
4.No special symbols other than an underscore, can be used in a variable name. 5.Uppercase and lowercase are significant. That is the variable Total, is not thesame as total or TOTAL.
6.The variable name should not be a keyword.
7.White space is not allowed


A Variable is a named location in memory that is used to hold a value that may be modified by the program. All variables must be declared before they can be used. Variables will be declared in three places:inside functions, in the definition of function parameters and outside of all functions. These are local variables, formal parameters and global variables.

Rate this tutorial:                    
Networking, Programming and Graphics Tutorials - Rules for variables - C++ [1/1] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: iptables rules RDP  variables in c++  prefix variables c++  php variables to flash  integrate flash with php variables  vhost.conf + variables  flash getvars post variables are not sent  print variables to file php code  making 3D anything  instant messangers  how to burn iso with nero  Online Home Network Diagnostics  C++ encapsulation  yahoo messangers  php.info file  pop proxy settings outlook  tracert tutorial  trillian port number  how to build an info.php file  xp network diagnostic