Default value of variables in c#

Omniitstudent
Posted by Omniitstudent under C# category on | Points: 40 | Views : 1681
TYPE ------------------------------------------ DEFAULT VALUE

. All Integer type ------------------------------- 0

. Char Type------------------------------------- '\x000'

.Float Type ---------------------------------- 0.0f

. Double Type ---------------------------------- 0.00d

. Decimal Type ------------------------------------- 0.0m
. bool type --------------------------------------------- false
.enum Type ---------------------------------------------- 0
.All Reference type --------------------------------- null

crazy code

Comments or Responses

Posted by: T.Saravanan on: 3/15/2012 Level:Silver | Status: [Member] [MVP] | Points: 10
Hi,

Kindly post your code inside the code tag.
Posted by: Sheonarayan on: 3/16/2012 Level:HonoraryPlatinum | Status: [Administrator] | Points: 10
I think as this is not code snippets, so posting inside the Code block /Code tag is not necessary.

Thanks

Login to post response