C# provides various built-in data types. Built-n data types are the predefined data types.
The Following table lists some of the built-in data types.
Predefined type #Bytes Range of values
char 2 0 and 65535
Int 4 -2,147,483,648 and 2,147,483,647
foat 4 -3.402823e+38 and -1.401298e-45(for negative values)
1.401298e-45 and 3.402823e+38(for positive values)
predefined types #bytes Range of values
Double 8 -1.79769313486232e308
4.94065645841247e-324
(for negative values)
bool 1 True or False
String Variable length 0-2 billion unicode characters
Built-in data types are represented at the machine level. the storage requirment,
therefore,depends on the hardware. the #bytes column in the preceding table depicts
the bytes required to store the value in the memory.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment