Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1 KB

c-constants.md

File metadata and controls

24 lines (18 loc) · 1 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: C Constants
C Constants
11/04/2016
constants, C
constants
f5bd7213-97ab-4cad-b913-1fc91a486935

C Constants

A constant is a number, character, or character string that can be used as a value in a program. Use constants to represent floating-point, integer, enumeration, or character values that cannot be modified.

Syntax

constant:
floating-point-constant
integer-constant
enumeration-constant
character-constant

Constants are characterized by having a value and a type. Floating-point, integer, and character constants are discussed in the next three sections. Enumeration constants are described in Enumeration Declarations.

See also

Elements of C