We can talk about the syntax of just a small part of a program, such as the syntax of variable declaration. There are several ways to declare variables: dataType variableName; This declares a variable, declares its data type, and reserves memory for it.