Declarations and variables - examples
- Politechnika Śląska
- Fundamentals of Computer Programming
Declarations and variables • The syntax of a declaration: • Variable name is an identifier • Identifiers: - consist of alphanumeric characters and underscores - can not begin with a digit - are case sensitive • Variables may be assigned values and used in expressions • Examples: a k a23 _xYz r2d2...