A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
C# data typesQuickly covers C#'s data types by giving a few examples. Good for transition between C or C++ to C#. |
On Saturday, April 3rd 2004 at 05:50 PM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 3.1 with 16 votes) |
||
C# Data TypesThe following example will show you the information you need about C#'s data types:
Getting the length of a stringSuppose you have the 'content' variable that is a 'string' type of variable:
C# arraysYou can initialize an array using:
(The above example could be simplified by using a 'foreach' loop like in VB but I wanted to stick to the topic). |
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current Commentsfloat is actually 8 bits exponent, 23 bits mantissa, 1 sign bit
There is any maximum limit for string . if so what is that ?
please program my hand over me.
praveen kumar pathak
This subject has been thrown around a little at the office here recently. We agreed that all arrays have one limit, the index has to be an integer. Therefore, the array can't be bigger then an integer value can hold ( 2147483647). So roughly 2 GBs. We agree even more so that you'll run out of RAM long before you'll run out of array length. ha ha
Related Tutorials
Related Source Code
C# Job Search