Variables in C programming can have local, global, or formal (parameter) scope. [1] Local variables are declared within a function and can only be accessed within that function. [2] Global variables are declared outside of functions and can be accessed anywhere. [3] Formal parameters declared in a function signature take precedence over global variables of the same name within that function.