+ 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.

1st Aug 2018, 10:39 AM
Sojib Islam 🇧🇩
Sojib Islam 🇧🇩 - avatar
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.
10th Aug 2018, 12:38 PM
Archita Saha
+ 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☺️☺️.
1st Aug 2018, 10:43 AM
Meet Mehta
Meet Mehta - avatar
+ 4
thanks
1st Aug 2018, 10:47 AM
Sojib Islam 🇧🇩
Sojib Islam 🇧🇩 - avatar
+ 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
8th Sep 2018, 5:07 AM
Pappy The humble
Pappy The humble - avatar
+ 2
I see variables as containers assigned to a specific ific data for easy reference
2nd Aug 2018, 12:37 AM
Igwenagha Prince Chukwuebuka
Igwenagha Prince Chukwuebuka - avatar
+ 2
Variables are like buckets. we can put somethings to it and also can get from it.
8th Aug 2018, 4:38 AM
Diroshan Tiranga
Diroshan Tiranga - avatar
+ 2
hi what is mean by pointer
14th Aug 2018, 8:19 AM
M.Vandana
+ 2
variable is somthing you will use in your programme and it will have many values .
16th Aug 2018, 12:00 AM
Assil Chraiki
Assil Chraiki - avatar
+ 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...
17th Aug 2018, 3:19 AM
UJJWAL MISHRA
UJJWAL MISHRA - avatar
+ 2
every programming language variable is a word to store data in ram location according to identifiers
17th Aug 2018, 5:52 PM
Oshada Basnayake
Oshada Basnayake - avatar
+ 2
we can see variables from different data types
17th Aug 2018, 5:53 PM
Oshada Basnayake
Oshada Basnayake - avatar
+ 2
data type is a storage format
17th Aug 2018, 5:55 PM
Oshada Basnayake
Oshada Basnayake - avatar
+ 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
3rd Aug 2018, 6:56 AM
deepak sharma
deepak sharma - avatar
+ 1
so a variable is used to identify the action of the code right ?
7th Aug 2018, 5:48 PM
Dorian Sparks
Dorian Sparks - avatar
+ 1
variable is identifier mainly is used to identy the memorylocation and allocations . it represents number letter and symbols
10th Aug 2018, 3:31 AM
veerakkannan
+ 1
variable is what we declare instead of war
10th Aug 2018, 12:46 PM
Siloko Joel
Siloko Joel - avatar
0
variable means alphabetical such as a,b,c,...,z. means value are store in variable value means any digit 51,5,7....
1st Aug 2018, 12:31 PM
arjun
0
variables are the object which can change their value when we assign new value to it
28th Aug 2018, 2:56 AM
Dipika pardeshi
Dipika pardeshi - avatar
0
Hello
14th Sep 2019, 4:09 AM
Siphamandla Siphamandla