C is the first and foremost programming language to programming. C is a high level structured programming language developed by Dennis M Ritchie in the year 1972.
This video explains Variable Declaration in C programming.
What is a Variable?
Variable is a data name used to store data value
It is a name given to a memory location to store the data
Each variable will have variable name and data type
Variable name consist of Letters, Digits and Underscore character
Its value changes during program execution
Rules to name Variables
Must begin with letter or underscore
Maximum length is 31 characters
Uppercase & Lowercase are significant
Keywords, Whitespace and Special Characters are not allowed
How to declare a variable
Each variable should be declared before used in program
Declaring a variable is reserving the amount of memory in advance
It is a method of informing the compiler to reserve the memory space for the data along with data type
Syntax
data_type var_list;
Declaration Rules
Each variable should be declared before used in program
Declaring a variable is reserving the amount of memory in advance
It is a method of informing the compiler to reserve the memory space for the data along with data type
Syntax
data_type var_list;
#variables
#variablesinc
#variabledeclaration
#howtodeclarevariable
#clanguage
#variabledeclarationandinitialization
#variable
#cseguruvideos
#csegurucvideos
#cseguruprogrammingvideos
#fundamentalsofc
CSEGuru Videos
#CSEGuru Compiler Design Videos:
• Compiler Design
CSEGuru DAA Videos
• Design & Analysis of Algorithm
CSEGuru Operating System Videos
• Operating System
CSEGuru Gate cse Videos
• Gate cse
CSEGuru NET cse Videos
• NET cse
CSEGuru Data Structure Videos
• Data Structure
CSEGuru Sorting Algorithm Videos
• Sorting Algorithm