+ 2

Can "while " be an identifier

in a code can "while" act as an identifier ?

22nd Aug 2017, 5:26 PM
Safwat Adiba
Safwat Adiba - avatar
7 Réponses
+ 2
For a constant yes, as a define, but it would prevent you from using it as a loop : #define while 45
22nd Aug 2017, 5:54 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 2
Keywords cannot be names of variables.
22nd Aug 2017, 5:42 PM
Rrestoring faith
Rrestoring faith - avatar
+ 1
well yeah
28th Oct 2018, 10:00 AM
BlazeGamingUnltd
BlazeGamingUnltd - avatar
+ 1
but you can't use it in a loop later on
28th Oct 2018, 10:01 AM
BlazeGamingUnltd
BlazeGamingUnltd - avatar
+ 1
and you will cconfuse yourself
28th Oct 2018, 10:02 AM
BlazeGamingUnltd
BlazeGamingUnltd - avatar
+ 1
sorry for sending the answer separately
28th Oct 2018, 10:03 AM
BlazeGamingUnltd
BlazeGamingUnltd - avatar
- 1
it can , but it tends to confuse a reader .key words shouldn't be used as variable
17th Oct 2018, 8:59 AM
neptune rose