Slide 8 Variable declarations Variable declaration syntax <type> <identifier Examples int nickel; A variable must be declared before it can be used! int main(t 5;// illegal: x was not declared what is syntax, semantics?Slide 8 Variable Declarations Variable declaration syntax: <type> <identifier>; Examples: int nickel; int penny; A variable must be declared before it can be used! int main(){ x = 5; // illegal: x was not declared } what is syntax, semantics?