3
I can not understand what this symbol serves in a variable, I see its use in some points in codes in SQL, Shell Script, C. For what it serves?
For example a use of this symbol in Shel Script:
DATA=$(date +%H)
The variable DATA
receives the (current date+ %H)
I don’t understand what the '%'
Depends on the language. It is usually used as the operator
MOD
, but this has no relation to variables. I’ve never seen this symbol in a variable in Java. You can give an example?– Jéf Bueno
In general this is
Mod
which is the rest of the division, for example 8 % 3 = 2. This is math and not programming, without an example it is impossible to say "what he is doing".– Inkeliz