30 Programming and Data Structures
2.8 RULES FOR DEFINING VARIABLES
1) They must begin with a character without spaces but an underscore is permitted.
2) The length of the variable varies from compiler to compiler. Generally most of the compilers
support 8 characters excluding extension. However, the ANSI Standard recognizes the
maximum length of a variable upto 31 characters.
3) The variable should not be a C keyword.
4) The variable names may be a combination of upper and lower characters. For example, sum
and suM are not the same.
5) The variable name should not start with a digit.
2.9 C’ AGGREGATE DATA TYPES
Data is a collection of characters, digits, symbols etc. The data are used to represent information. The
data are classified in various types. Fig. 2.2 indicates all data types. C data types can be classified
into the following categories.
a) Basic data type
b) Derived type
c) User-defined type
d) Void data type
Fig. 2.2 C data types
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.40.32