Computer Theory notes
Wednesday, 5 February 2014
3.1.1 The Difference between a variable and a constant
Some data needs to change throughout a program (variable)
Some data must stay the same, and must not change (constant)
In the c programming language, a constant is defined like this:
int const a = 1;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment