This is My First Answer So You Find Any Mistake Pleas Tell me (Y)
Global Variable-
Global Variable Are That Variable Which is Define At The Top Of The Programmer (After Header Files)
We Can Access From Any Where.
There Initial Values int=0, float=0.000000, char- “Blank Space(Non-Printable Char)”.
Scope[Availability] is Through Out Of The Program.
Life-Time[Active in Memory] is Until Total Program is Executed.
They Are Stored in Data Segment Area,Which is Public Area. Hence They Are Also Called as Public Variables.
Local Variable-
The Variables That Are Declared Inside A Function Are Called Local Variables.
They Are Stored in Stack
There Initial Values Are Garbage.
Scope[Availability] is until that function or block are executed.
Life-Time[Active in Memory] is Until That Function is Executed.