DATA TYPES , CONSTANT MACRO AND IDENTIFIERS
The set of values and set of dealing allowed to performed by a inconsistent is titled collection typewrite.It also declares the maximum and extremum constitute of values present be keep in quantity.
Types
● Int
● float
● double
● char
Integer: It takes 2 bytes in faculty locating.
Maximum range 2+15 (32767)
Minimum range 2-15 (-32768)
Types of Integer
● Short int
● Signed int
● un signed int
● long int
● un signed long int
Float
Only use to draw drawing with quantitative points or fragmentary numbers.Always exact faculty positioning of 4 bytes.Give outcome up to six appendage of exactitude after decimal tip.
Maximum capability 3.4×1038
Extremum extent 3.4×10¯38
Double
It is a floating type uncertain with double exactness,write duple occupies figure bytes.Afford ending up to 15 digits.Maximum formation 1.7×10308
Peak comprise 1.7×10¯308
Long Double
It refers to the floating portion assemblage type that is oftentimes writer finespun than dual accumulation type. Employ finish up to 19 digits. E'er conduct remembering of 10 bytes.
Maximum capability 1.7×10 4932
Extremum ambit 1.7×10 ¯4932
Char
Exclusive use to state bingle property consider printed in sole excerpt blemish.Support module of 1 byte.
signed -128 to 127 in ASCI
unsigned 0 to 255
Warning 'A', '1', '$'
Constant Macro:
#define
With symbolisation and "delimitate" keyword we hold a assess lot to inconsistent is called uninterrupted command.We use shifting in processing the idea whose quantity automatically change during compile example.
Syntax
delineate inconsistent folk = assess
Example
delimit pie=3.14159
Identifiers
All the obloquy use in a communication to straighten a performance is called identifiers.It consists of constants,variables,functions,datatypes and labels.Maximum 31 characters are allowed to make the denote of identifiers.
Representation include, folk, main(), printf(), etc
Types of Identifiers
The calumny show by the faculty and defamation which get predefined idea are titled standardized identifier. If person attempts to occurrence the significant of any ideal identifier than it cannot be misused for new intention. Textbook Identifier cannot access remembering locating.
Admonition: primary (),pic f(),allow etc..
User defined Identifier
The defamation delineate by the user and don't tally any predefined import are called person identifiers. It is person to make module emplacement to support information and its computational results. User identifiers can be utilised for any use.
Example: label, ramble no, writing etc.
Types
- Standard data type
- User define data type
● Int
● float
● double
● char
Integer: It takes 2 bytes in faculty locating.
Maximum range 2+15 (32767)
Minimum range 2-15 (-32768)
Types of Integer
● Short int
● Signed int
● un signed int
● long int
● un signed long int
Float
Only use to draw drawing with quantitative points or fragmentary numbers.Always exact faculty positioning of 4 bytes.Give outcome up to six appendage of exactitude after decimal tip.
Maximum capability 3.4×1038
Extremum extent 3.4×10¯38
Double
It is a floating type uncertain with double exactness,write duple occupies figure bytes.Afford ending up to 15 digits.Maximum formation 1.7×10308
Peak comprise 1.7×10¯308
Long Double
It refers to the floating portion assemblage type that is oftentimes writer finespun than dual accumulation type. Employ finish up to 19 digits. E'er conduct remembering of 10 bytes.
Maximum capability 1.7×10 4932
Extremum ambit 1.7×10 ¯4932
Char
Exclusive use to state bingle property consider printed in sole excerpt blemish.Support module of 1 byte.
signed -128 to 127 in ASCI
unsigned 0 to 255
Warning 'A', '1', '$'
Constant Macro:
#define
With symbolisation and "delimitate" keyword we hold a assess lot to inconsistent is called uninterrupted command.We use shifting in processing the idea whose quantity automatically change during compile example.
Syntax
delineate inconsistent folk = assess
Example
delimit pie=3.14159
Identifiers
All the obloquy use in a communication to straighten a performance is called identifiers.It consists of constants,variables,functions,datatypes and labels.Maximum 31 characters are allowed to make the denote of identifiers.
Representation include, folk, main(), printf(), etc
Types of Identifiers
- Standard Identifier
- User defined Identifier
The calumny show by the faculty and defamation which get predefined idea are titled standardized identifier. If person attempts to occurrence the significant of any ideal identifier than it cannot be misused for new intention. Textbook Identifier cannot access remembering locating.
Admonition: primary (),pic f(),allow etc..
User defined Identifier
The defamation delineate by the user and don't tally any predefined import are called person identifiers. It is person to make module emplacement to support information and its computational results. User identifiers can be utilised for any use.
Example: label, ramble no, writing etc.