Friday 30 January 2015

User- defined Words. (identifiers )

Faizan Ali contact:- 03235356409 email:- ali.faizan0009@hotmail.com


THE WAORD THAT ARE GIVENT TO ANY ENTITY OR VERIABLE, OR DATA TYPE ARE CALLED  IDENTIFERS OR USER DEFINE WORDS.” THESE WORDS DOES change Data behavior in any way.
            Before using identifier simply remember following rules.
1.    Characters:
(A to Z, or a to z). digits (0 to 9) and only special character _ (under score) can be used as identifier.
2.    Unique Words:
Identifier must be unique in a program. e.g student roll no.

3.     Case-Sensitive:
In C/C++ user have the freedom to use both upper or lower case. But CC++ is case-sensitive ( Ball, ball, or bAIll ) are three different identifiers. 
4.    Space
No embedded blank “Space” is allowed. In simple word space is not allowed in an identifier.
5.    Length:
The identifier can be of any length. In c at least the first 31 characters will be significant, whereas, in c++ there is no limit to the length of an identifier.

6.    Can’t use Reserved words
Reserved words can’t be used as an identifier

0 comments:

Post a Comment