Forums Register Login

valid identifiers

+Pie Number of slices to send: Send
Which are valid identifiers?
1) _variables
2) �currency
3) val$ue
4) @purr
5) 2digits
Also can u tell what is the '�' in the '�currency'
+Pie Number of slices to send: Send
1,2,3 are valid identifiers.
4,5 are not valid identifiers.It starts with number and invalid character.
� is the currency for Japan 'YEN'.
+Pie Number of slices to send: Send
� is the currency for Japan 'YEN'.
Exactly right. Identifiers can start with a letter, underscore or a currency symbol, and they can include digits in any location EXCEPT the first one.
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 583 times.
Similar Threads
Doubts K&B Java 1.5 Chapter 1
is e# is a valid identifier ot not?
Why a legal identifier cannot include the character #
identifier - currency symbols
need help here!.. variable declaration
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:50:19.