Introduction to variables.
In today 's lesson, we are going to talk about variables in
C programming. In reality, variables are simply names that
points to some memory location. You must have to declare
variables before using it in your program. Declaration
simple means announcing the properties of the variable to
the compiler. Definition of a variable means allocating
memory to a variable. A variable in its pronunciation has
word vary. Something that can vary over time. On the
other hand constant is just the opposite. once defined will
never change. If you want the value to be changed
somewhere, then you can do that. You can also assign
variable to a variable instead of this constant value 3 or 4.
All these variables are of integer type. Instead of defining
and declaring in different lines it is better to write them
down in a single line. There are three different variables
var1 var2 var3. Because all of them has been assigned to
the same value 4 that is why we are getting three values
of 4 in the output.
In today 's lesson, we are going to talk about variables in
C programming. In reality, variables are simply names that
points to some memory location. You must have to declare
variables before using it in your program. Declaration
simple means announcing the properties of the variable to
the compiler. Definition of a variable means allocating
memory to a variable. A variable in its pronunciation has
word vary. Something that can vary over time. On the
other hand constant is just the opposite. once defined will
never change. If you want the value to be changed
somewhere, then you can do that. You can also assign
variable to a variable instead of this constant value 3 or 4.
All these variables are of integer type. Instead of defining
and declaring in different lines it is better to write them
down in a single line. There are three different variables
var1 var2 var3. Because all of them has been assigned to
the same value 4 that is why we are getting three values
of 4 in the output.