Call Us:
+91 9437911966
Email Us:
info@studentstutorial.com
Home
C Examples
Server Side
PHP
Java
CodeIgniter
Laravel
JSP
JDBC
Frontend
HTML
CSS
Javascript
jQuery
AJAX
FPDF
TCPDF
APP & DB
Android
Cordova
SQL
Oracle
Project
C Tutorial
C Introduction
C Characteristic
C Comments
C Operator
C Assign Operator
C Arithmetic Oper..
C Logical Operator
C Modulus Operator
C Variable
C Initialise Variable
C Print F
C Translators
C Programming
C Control Flow
C If Else Statement
C Nested If Else
C Loops
C While Loops
C For Loops
C Do While
C Nested Loops
Variable Declarations in C
Students Tutorial
08 jun 2020
Previous
Next
Name of the memory location is called a variable.
Before using any variable in the program, it must be required to declare first.
Declaration of variable means required to specify data type, name of the variable followed by same-order.
In ‘c’ programming language variables required to declare on top of the programming after opening the body by writing first statement.
In declaration of d variable, name of the variable must be required to state with alphabet or underscore only.
In declaration of the variable, existing key words, operators, separators, constants are not allowed.
In declaration of the variable, max.length of variable name is 32 characters, after 32 characters compiler will not consider remaining characters.
Data Type variable or Data Type Var1, var2, var3,
When we are using multiple variables of the same data type then recommended using comma as a separator.
According to syntax, at least single space must be required b/w data type and name of the variable.