Module 7 More Data Types and Operators
A variable declared with the const modifier cannot have its value changed during the execution of your program. Thus, a const “variable” isn’t really variable! You can give a variable declared as const an initial value, however. For example, const int max_users = 9; creates an int variable called max_users that contains the value 9. This variable can be used in expressions like any other variable, but its value cannot be modified by your program.
Chúng tôi đang tạo link, vui lòng đợi 20 giây
Tổng cổng: 1174 tài liệu / 118 trang