5.8k views
2 votes
Which of the following variable name is NOT valid in C#? annualReview per cent increase alternative inputName4

User Somar
by
7.9k points

1 Answer

6 votes

Final answer:

The variable name per cent increase is not valid in C# because it contains a space. Valid alternatives using underscores or camel case are per_cent_increase or perCentIncrease.

Step-by-step explanation:

The variable name per cent increase is not valid in C# because it contains a space. In programming, variable names cannot contain spaces. Instead, you can use underscores or camel case to separate words. For example, you could use per_cent_increase or perCentIncrease as valid variable names in C#.