Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
What will happen if we compile below C# code?
public const string status_deactive = null;
public void initialize_const_value()
status_deactive = "DD";
on 12/26/2013 | Category:
C# Interview questions
| Views: 2549 |
Select from following answers:
It will compile successfully.
None of these.
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
Many Interviews |
< Previous :
How to check whether Dropdown-list contains any it ...
Next > :
What will happen if we compile below code? publ ...
Comments or Responses
Login to post response
More Interview Questions by vishalneeraj-24503
What will happen if we compile below code? public const string stat ...
What will happen,if we compile below code? public readonly string s ...
Can we initialize or assign values to Read-only variables in any met ...
Where is the place to assign Read-only variables?
How to get only Year from Current Date?
How to Dispose an Object?
How to access values from ViewState?
How many ways to remove items or keys from ViewState?
Latest Interview Questions
How to get the list of tables in a database and also the size of which ...
Your developing web application which access data from a MS sql and ha ...
Differences between ISNULL and NULLIF ?
What will be output of following function when called? public strin ...
DB2 - Display the employee details who are working from more than 1 an ...
DB2 - Fetch the current date and time in the following format 24/APR ...
DB2 - Find the NAMEs that have an even number of letters in them