Where may variables be defined in C?

drnaga

Par 100 posts (V.I.P)
Where may variables be defined in C?

Outside a function definition (global scope, from the point of definition downward in the source code). Inside a block before any statements other than variable declarations (local scope with respect to the block).
 
Top