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:
Jill Britton
Apr 20, 2023
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
Apr 20, 2023 05:49
Jill Britton
View Changes
Jan 10, 2023 05:38
Michal Rozenau
View Changes
Parasoft C/C++test 2022.2
Apr 23, 2021 08:59
Jill Britton
View Changes
Apr 21, 2021 05:01
Jill Britton
View Changes
Apr 20, 2021 06:23
Jill Britton
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 (2)
Home page:
SEI CERT C++ Coding Standard
Page:
VOID DCL06-CPP. Use meaningful symbolic constants to represent literal values in program logic
SEI CERT C Coding Standard (20)
Page:
Parasoft_V
Page:
Axivion Bauhaus Suite
Page:
AA. Bibliography
Page:
Polyspace Bug Finder_V
Page:
LDRA
Page:
FLP32-C. Prevent or detect domain and range errors in math functions
Page:
LDRA_V
Page:
Rose
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
Overview
Content Tools
{"serverDuration": 113, "requestCorrelationId": "1150fb0ff62f71c2"}