Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
What will happen if we compile below code?
public const string status_active;
on 12/26/2013 | Category:
C# Interview questions
| Views: 2598 |
Select from following answers:
It will compile successfully.
None of these.
It will give compile-time error saying that
"A const field requires a value to be provided"
Meaning that a constant variables must be initialized at the time of declaration.
Show Correct Answer
Many Interviews |
< Previous :
What will happen if we compile below C# code? p ...
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 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?
How to remove values 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