There are basically three data types in c language:
1) Constants-
A constant is an entity that doesn’t change whereas a variable is an entity that may change.
Types of C Constants:
C constants can be divided into two major categories:
(a) Primary Constants
These are again divided into three types as:
- Real constants
- Integer constants
- Character constants
(b) Secondary Constants
These are again further divided into :
Rules for Constructing Accumulation Constants:
- An accumulation connected accept only atomic digit.
- It can accept a decimal point.
- It can be either absolute or negative.
- If no assurance precedes an accumulation connected it is affected to be positive.
- No commas or blanks are accustomed aural an accumulation constant.
- The acceptable range for accumulation constants is -32768 to 32767.
Rules for real constants:
- At least one digit is compulsory.
- It can accept a decimal point.
- It could be either absolute or negative.
- Default assurance is positive.
- No commas or blanks are accustomed aural a absolute constant.integer constants is -32768 to 32767.
Monday
//
Labels:
C LANGUAGE
//
0
comments
//
0 comments to "DATA TYPES"
Powered by Blogger.
Blog Archive
-
▼
2011
(50)
-
▼
July
(38)
- INTRODUCTION TO C
- DATA SETS IN C
- DATA TYPES
- VARIABLES
- SIMPLE C PROGRAM
- PROGRAM USING SCANF() AND PRINTF()
- C INSTRUCTIONS
- INTRODUCTION TO DECISION CONTROL STRUCTURES
- IF STATEMENT
- IF STATEMENT PROGRAM
- IF ELSE STATEMENT
- NESTED IF ELSE
- DETERMINING ROOTS OF AN EQUATION
- ELSE IF STATEMENT
- LOGICAL AND ARITHMETIC OPERATORS
- CONDITIONAL OPERATORS
- LOOPS
- THE WHILE LOOP
- The for bend specify things about a bend in a ind...
- EXAMPLE OF FOR LOOP
- NESTING OF LOOPS
- THE ODD LOOP
- THE DO-WHILE LOOP
- BREAK STATEMENT IN C
- THE CONTINUE STATEMENT IN C
- SWITCH STATEMENT IN C
- SIMPLE PROGRAM SHOWING SWITCH STATEMENT
- THE GOTO STATEMENT IN C LANGUAGE
- FUNCTIONS IN C LANGUAGE
- CALLING FUNCTIONS IN C LANGUAGE
- CALL BY REFERENCE IN C LANGUAGE
- POINTERS IN C LANGUAGE
- SIMPLE PROGRAM SHOWING POINTER IN C LANGUAGE
- PROGRAM FOR FUNCTION CALL BY REFERENCE IN C
- SWAPPING OF TWO NUMBERS IN C
- RECURSION IN C LANGUAGE
- FACTORIAL OF A NUMBER WITHOUT RECURSION IN C
- ARRAYS IN C LANGUAGE
-
▼
July
(38)
Post a Comment