Ask Question

Which of the following is not a legal identifier?

app_234

happyTimesAhead

321Go

cis22B

+2
Answers (1)
  1. 3 November, 20:09
    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?
Find an answer to your question 👍 “Which of the following is not a legal identifier? app_234 happyTimesAhead 321Go cis22B ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers