Ask Question
17 October, 13:22

Which of the following is not a legal identifier?

app_234

happyTimesAhead

321Go

cis22B

+4
Answers (1)
  1. 17 October, 15:50
    0
    321Go

    Explanation:

    The identifiers in C, C++, C#, Java and other programming languages are a combination of letters, numbers and the underscore symbol. The laters versions of C and C+ + allows you to use almost all Unicode characters. In Java, you can use also the dollar sign.

    From that you have to be careful to follow these rules:

    -Don't use keywords.

    -Don't include white spaces.

    -Don't use operators.

    -Don't repeat identifiers.

    -Don't start your identifier with a number.

    -Don't use two consecutive underscores.

    So app_234, happyTimesAhead, and cis22B are follo wing these rules but 321Go starts with a number.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Which of the following is not a legal identifier? app_234 happyTimesAhead 321Go cis22B ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers