#c-variabletypesstatic
Explore tagged Tumblr posts
Text
C-Variable Types

C-Variable Types - It Is Name Given To A Memory Location That May Be Used To Store Data Values. The Variable Name Is Chosen By Programmer In A Meaningful Way. The Variable Names Should Not Be The Standard Keywords That Are Present In The Library Functions. Examples For Variable - Sum, avg, total Etc Rules That You Should Follow While Declaring The Variable - The Variable Should Began With Letter. The Length Of The Variable Must Not Exceed 31 Characters In ANSI Standard. Upper & Lower Characters Are Different. eg:- total,TOTAL,Total. Variable Should Not Be Keyword(int, void,char) Space Is Not Allowed In Between The Letters Of The Variable. How You'll Declare Variable In The Program - Syntax - datatype v1 Variable Declaration Can Be Done In Two Types :- Local Declaration, Global Declaration. Local Variable Declaration:- If You Declare Variable Inside The Main Block Is Available With In That Block. Global Variable Declaration:- Declaring Variable Outside The Main Block & Is Available Through Out The Program.
Example:-
#include int a,b; /*global variable*/ main() { int c; /* Local Variable Declaration*/ -- -- } Read the full article
#c-variabletypes#c-variabletypesboolean#c-variabletypesexamples#c-variabletypesinteger#c-variabletypesmeaning#c-variabletypesprintf#c-variabletypesrules#c-variabletypessize#c-variabletypesstatic#c-variabletypesstring
0 notes