Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT C Coding Standard
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT C Coding Standard
3 Recommendations
Rec. 02. Declarations and Initialization (DCL)
DCL06-C. Use meaningful symbolic constants to represent literal values
Page Information
Title:
DCL06-C. Use meaningful symbolic constants to represent literal values
Author:
-
Apr 26, 2007
Last Changed by:
David Svoboda
May 19, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/AtYxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (2)
Page:
EXP07-C. Do not diminish the benefits of constants by assuming their values in expressions
Page:
DCL00-C. Const-qualify immutable objects
Hierarchy
Parent Page
Page:
Rec. 02. Declarations and Initialization (DCL)
Labels
Global Labels (8)
ldra
compass/rose
rose-na-macros
hand-coded
android-applicable
exceptions
recommendation
dcl
Recent Changes
Time
Editor
May 19, 2025 16:27
Jill Britton
View Changes
REM Cost Reform
Mar 05, 2025 07:17
Jill Britton
View Changes
Mar 05, 2025 07:16
Jill Britton
View Changes
Mar 05, 2025 07:15
Jill Britton
View Changes
Jan 29, 2025 23:23
Amy Gale
Added entry for new CodeSonar warning class
View Page History
Outgoing Links
External Links (9)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
cwe.mitre.org/
www.doc.ic.ac.uk/lab/cplus/c++.rules/chap10.html
c-faq.com/cpp/constvsdefine.html
https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
cwe.mitre.org/data/definitions/547.html
https://www.mathworks.com/help/bugfinder/ref/certcrec.dcl06…
SEI CERT C Coding Standard (24)
Page:
Parasoft_V
Page:
Axivion Bauhaus Suite
Page:
Klocwork_V
Page:
AA. Bibliography
Page:
Polyspace Bug Finder_V
Page:
LDRA
Page:
FLP32-C. Prevent or detect domain and range errors in math functions
Page:
CodeSonar
Page:
LDRA_V
Page:
Klocwork
Page:
Rose
Page:
CodeSonar_V
Page:
Parasoft
Page:
DCL00-C. Const-qualify immutable objects
Page:
Axivion Bauhaus Suite_V
Page:
ECLAIR_V
Page:
ARR01-C. Do not apply the sizeof operator to a pointer when taking the size of an array
Page:
ECLAIR
Page:
Polyspace Bug Finder
Page:
Helix QAC_V
Page:
Helix QAC
Home page:
SEI CERT C Coding Standard
Page:
BB. Definitions
Page:
EXP09-C. Use sizeof to determine the size of a type or variable
SEI CERT C++ Coding Standard (2)
Home page:
SEI CERT C++ Coding Standard
Page:
VOID DCL06-CPP. Use meaningful symbolic constants to represent literal values in program logic
Overview
Content Tools
{"serverDuration": 120, "requestCorrelationId": "ed2ff651d7dda337"}