Select from following answers:- It will compile successfully.
- compile-time error.

- run-time error.
- None of these.
- All Above
When we compile above C# program,then it
will give compile-time error as
The left-hand side of an assignment must be a variable, property or indexer
Because constant values must be initialized in declaration only other than any where in the code.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator