C Constants are also like normal variables. But, only difference is, their values can not be modified by the program once they are defined.
Constants refer to fixed values. They are also called as literals
Constants may be belonging to any of the data type.
const data_type variable_name; (or) const data_type *variable_name;
Types of C constant:
Real or Floating point constants
Octal & Hexadecimal constants
Backslash character constants
1 Integer constants int
long long int 53, 762, -478 etc
5000u, 1000U etc
2 Real or Floating point constants float
3 Octal constant int 013 /* starts with 0 */
4 Hexadecimal constant int 0Ã90 /* starts with 0x */
5 character constants
âAâ , âBâ, âCâ
6 string constants
âABCDâ , âHaiâSyntax:
const variable-name [ = value];Example:
const my_age = 32;
Java Enterprise Edition (EE)
Java Standard Edition (SE)
RFC (standard status)
RFC (proposed standard status)
RFC (draft standard status)
RFC (informational status)
RFC (experimental status)
RFC (best current practice status)
RFC (historic status)
RFC (unknown status)
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 750 / 158659201. Delta: 0.01721 с