+ 5
What is variables?
Give me some idea about variables. I do not know about the variables. I'm learning new ones. If anyone knows about the variables.? Please help me.
19 Respostas
+ 1
variable means which value dose not constant or stable. i.e 2 is a constant if i put x=2 x gona be a variable because in the same prog we can put another value of x.like x=2.
#include <iostream>
int main(){
int x;
for( x=2;x>10;x++){
cout <<"x"; //output will be 2 3 4 5 6 7 8 9 .
} //end of for loop.
x=10;
if (x=10){
cout <<"i am great";
} //end of for loop.
return 0;
} //end of the prog.
we can see i consider the different value of x in the same prog.so x is the variable. if i consider 'x' to cover with a single comma then x will act like a character otherwise a to z all alphabet are variable.if alphabet have single invarted comma then that alphabet is gona be a character.
+ 4
Variable :
Suppose you have to display message to screen multiple time.
You can do it normally by writing message in your script multiple times.
But think if its about 1000 time or more.
Than Instead of writing message multiple time we can store it in variable and use that to reference message
Hope this helps☺️☺️.
+ 4
thanks
+ 3
variables are like boxes where data is stored. It can contain values which can change. So we give the variable a name and when we need the data in the variable we don't have to type it again but we just use the name to refer to it. This can be helpful if you need the data many times.
Variables can really safe time
+ 2
I see variables as containers assigned to a specific ific data for easy reference
+ 2
Variables are like buckets. we can put somethings to it and also can get from it.
+ 2
hi what is mean by pointer
+ 2
variable is somthing you will use in your programme and it will have many values .
+ 2
variables are like folders in which you can keep any type of files and use then any time, but you have to make sure that you have declared your variable with a specific data type that you need...
+ 2
every programming language variable is a word to store data in ram location according to identifiers
+ 2
we can see variables from different data types
+ 2
data type is a storage format
+ 1
variable is an entity may be during program excution
more details about syntax
http://www.tutorialsteacher.com/csharp/csharp-variable
more about types of variable
https://www.tutorialspoint.com/csharp/csharp_variables.htm
+ 1
so a variable is used to identify the action of the code right ?
+ 1
variable is identifier mainly is used to identy the memorylocation and allocations . it represents number letter and symbols
+ 1
variable is what we declare instead of war
0
variable means alphabetical such as a,b,c,...,z. means value are store in variable value means any digit 51,5,7....
0
variables are the object which can change their value when we assign new value to it
0
Hello