Computer Science, asked by beribarvbar, 4 months ago

the keyword used when declaring identifiers as constants instead of variables?


HarshdeepKaur2: yrr koi to Follow krdo

Answers

Answered by AnshuSinghS164
1

Explanation:

Constants are basically variables whose value can't change. In C/C++, the keyword const is used to declare these constant variables. In Java, you use the keyword final . However, the tool introduced here is not simply a primitive variable.

Answered by itsmedax
2

Answer:

A global or static variable can be declared (or a symbol defined in assembly) with a keyword qualifier such as const , constant , or final , meaning that its value will be set at compile time and should not be changeable at runtime. ... These constants differ from literals in a number of ways.

Hope it helps:)

Similar questions