Global and local scope in C

Introduction

Blocks

blocks

Global

Global variables are allocated at compile time.

Initialised variables are set to their given value.

Uninitialised variables have space set aside for them.