The C Constants
In C constants are of two types.
1. Primary constant.
2. Secondary constant.
Rules for integer constant:
Must Read
The range vary from compiler to compiler. Here the range is given for 16 bit compiler.Rules for real constant:
Rules for character constant:
Must Read
The range vary from compiler to compiler. Here the range is given for 16 bit compiler.
C Example
#include<stdio.h> int main() { int i=1; float a=2.1; char c='A'; printf("%d",i); return 0; }