Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 10814 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > C# > Default value of variables in c# ...
Omniitstudent

Default value of variables in c#

 Code Snippet posted by: Omniitstudent | Posted on: 3/15/2012 | Category: C# Codes | Views: 550 | Status: [Member] | Points: 40 | Alert Moderator   


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

omprakash
Found interesting? Add this to:


 Responses

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

Hi,

Kindly post your code inside the code tag.

Thanks,
T.Saravanan

Sheonarayan
Posted by: Sheonarayan | Posted on: 3/16/2012 | Level: HonoraryPlatinum | Status: [Microsoft_MVP] [Administrator] | Points: 10 | Alert Moderator 

I think as this is not code snippets, so posting inside the Code block /Code tag is not necessary.

Thanks

Regards,
Sheo Narayan, Microsoft MVP
230+ ASP.NET Tips and Tricks - http://www.itfunda.com/Howto

>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 11:02:39 AM