What is default value of enum c#?



What is default value of enum c#?..

Answer / Bhagat Singh

In C#, when an Enum type is declared without any explicit initial values, it automatically gets assigned integer values starting from 0. For example: 'EnumType { Value1, Value2 }' will have 'Value1' with a value of 0 and 'Value2' with a value of 1.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

When should you use generics?

1 Answers  


What is different between Boxing and Unboxing?

1 Answers  


What is an inheritance ?Give an example in which inheritance is used?

1 Answers   Siebel,


What is dataset and dataadapter in c#?

1 Answers  


Is goto statement supported in C#? How about Java?

2 Answers  


Explain About Postback

1 Answers   BirlaSoft,


What is tuple in c#?

1 Answers  


What is an escape sequence in c#?

1 Answers  


What's the difference between abstraction and encapsulation?

1 Answers  


Explain when should you call the garbage collector in .net?

1 Answers  


What is the execution entry point for a c# console application?

1 Answers  


What is parallel foreach in c#?

1 Answers  


Categories