Tutorials
Resources
Forum
Reviews
Communities
Interview
Jobs
Projects
Training
Your
Ad
Here
Silverlight Games
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Polls
|
Revenue Sharing
|
Lobby
|
Gift Shop
|
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
Pawan
(35)
Deepika Harida...
(32)
Nadheera V
(30)
Last 7 Days
Nikhil Gaur
(598)
Anil Kumar ...
(582)
Abhisek Panda
(451)
more...
Resources
»
Articles
»
.NET Framework
»
Primitive data types
Posted Date: 05 Apr 2004
Resource Type:
Articles
Category:
.NET Framework
Author:
Kasiviswanath
Member Level:
Gold
Rating:
Points
: 5
In C# has a number of built in types called primitive data type.
Most commonly used primitive data types are.
1. Int
* The
Int
data type hold whole numbers
* The Size (bits) = 32
* Range–2
31
through 2
31
-1
2. Long
* The
Long
data type hold whole number; the number beiger than Int but it requires more memory.
* The size (bits) = 64
* Range–2
63
through 2
63
-1
3. Float
* The
Float
data type hold Flouting point number (ie) the number containing decimal point.
* The Size (bits) = 32
* Range ± 3.4 * 1038
4. Double
* The
Double
data type hold the values to twice the precision of float.
* The Size (bits) = 64
* Range ± 1.7 * 10308
5. Decimal
* The
Decimal
data type hold values to 28 significant figures.
* The Size (bits) = 128
* Range 28 significant figures.
6. String
* The
String
data type hold sequences of characters.
* The Size (bits) 16 bits per character.
* Range N/A
7. Char
* The
Char
data type hold single character
* The Size (bits) = 16
* Range 0 through 2
16
-1
8. Bool
* The
Bool
data type hold either true or false.
* The Size (bits) = 8
* Range True or False.
Responses
No responses found. Be the first to respond and make money from
revenue sharing program
.
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
to add tags.
(No tags found.)
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
Built-in Attributes : AttributeUsage, Conditional, and Obsolete
Previous Resource:
Pointers in C# and writing Unsafe code
Return to Discussion Resource Index
Post New Resource
Category:
.NET Framework
Post resources and
earn money
!
Related Resources
Built-in Attributes : AttributeUsage, Conditional, and Obsolete
Attributes : The Additional Information that is associated with a class, structure, method...
Exception Handling: Exceptions Let You Handle Errors Gracefully
Tips in VB.NET - Tip #8
Enumeration in .NET
Retrieving the name and parameters of current method using Reflection
dotNet Slackers
About Us
Contact Us
Privacy Policy
Terms Of Use