Semantic of C
Operational semantic: their effect on a computer
Data types:
- In C, all variables/identifiers must be declared before they can be used. Why?
- to set aside an appropriate amount of space in memory to hold values associated with variables
- enable the compiler to instruct the machine to perform specified operation correctly
e.g.. a = b + c (int = int + int or float = float + float)
- b + c is an example of expression, like variables, has both value and type which depends critically on the types and value of the constants, variables ,and function calls making up the expression