Is this information correct? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is this information correct?

A variable is assigned when it is assigned to a value. A literal is the value a variable is assigned to. The literal of a variable must be a type of data that matches the data type of the variable. //declared datatype identifier; //assigned identifier = literal; float a = 2.004F

30th Nov 2018, 5:21 AM
Raincloud
1 Answer
+ 1
Yes.
6th Dec 2018, 2:01 AM
Yusuf
Yusuf - avatar