In this context, '4' refers to an integer literal with the value 4. It is a specific numeric value written directly in source code.
Think of '4' as representing four seats at a table. It's simply a representation of quantity.
Literal: A fixed value expressed in source code, such as numbers or strings.
Numeric Value: Any numerical representation used for mathematical calculations or comparisons.
Constant: A named storage location whose value cannot be changed during program execution.
Study guides for the entire semester
200k practice questions
Glossary of 50k key terms - memorize important vocab
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.