I have given here a live demo on variables - Varaible Declaration, Definition, Assignment, Initialization, Static Variable and Global Variables