0
what is the meaning of Variable and Data type? Provide example also. Thanks in advance. :)
5 Antworten
+ 2
yes that is it.
+ 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.
+ 1
That's right.
0
means what if I write , int x=5; so here x is variable and int is data type.....right??
0
yeah I think that's right , x is a variable and 5 is the integer!! I'm I right??