Computer Science, asked by shaildevnum, 2 days ago

find the following identifiers valid or not. if invalid write the reason.
a. Throw
b. Else
c. True
d. M. Salary
e. $Bill
f. 8m
g. Cout
h. MAIN
i.Implement
j. package​

Answers

Answered by ajoshimay1980
2

Answer:

Valid Identifiers

What constitutes a legal name in C++ is governed by very simple rules:

A name can have one or more characters;C++ places no limits to the length of an identifier.

Only alphabetic characters, numeric digits, and the underscore character (_) are legal in an identifier.

The first character of an identifier must be alphabetic or an underscore (it cannot be a numeric digit).

Upper case letters are considered distinct from lower case letters; that is, identifiers are case sensitive.

C++ reserved words cannot be used for identifiers.

Answered by craftygirls97
4

Explanation:

Why does the Happy Prince send a ruby for the seamstress? What does the swallow do in the seamstress’ house?

Similar questions