Answer the question
In order to leave comments, you need to log in
Is it necessary to attribute const if you put a suffix?
For example, what is the difference: const float var1 = 324.1;
from the float var1 = 324.1F
suffix F does it already mean that it is a constant?
Answer the question
In order to leave comments, you need to log in
A constant is the literal itself (with a suffix). And to a variable you appropriate (in this case - you copy) value of a constant. It looks like this situation:
const int c = 35;
int var = c;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question