0

what is the meaning of Variable and Data type? Provide example also. Thanks in advance. :)

10th Sep 2016, 9:25 AM
Rishikesh Joshi
Rishikesh Joshi - avatar
5 ответов
+ 2
yes that is it.
10th Sep 2016, 12:08 PM
Mohed
Mohed - avatar
+ 1
A variable contains data, and you can change the value of a variable at any time. Data types include for example int (integer, ie natural number), float and double (decimal number), char (character), string (chain of characters, ie text), etc. It basically indicates how the bytes of the data should be interpreted.
10th Sep 2016, 10:35 AM
Zen
Zen - avatar
+ 1
That's right.
10th Sep 2016, 10:51 AM
Zen
Zen - avatar
0
means what if I write , int x=5; so here x is variable and int is data type.....right??
10th Sep 2016, 9:41 AM
Rishikesh Joshi
Rishikesh Joshi - avatar
0
yeah I think that's right , x is a variable and 5 is the integer!! I'm I right??
10th Sep 2016, 12:59 PM
MATOVU PETER ASIIMWE