New course! Every coder should learn Generative AI!
Try a free lesson0
C#
which are valid c# variable name Bad-var 1star personAge #personname#
5 Answers
+ 1
Variables cannot start with a number. Variables must only contain letters, numbers, and underscore. Go back and read this lesson for more information.
+ 1
Yes, they can contain numbers as long as they do not start with a number.
0
tanx Anthony
0
but anthony ! firs you said "variables cannot start with a number ,then you mentioned numbers a gain?.
0
k. i got it tanx