.


:




:

































 

 

 

 


. / : 3




/ : 3

b 255: 255 -- .

257: 1 .i

s 32000: 32000 -- ,

s 64000: -1536 -- .

- 64000: 64000 ,

-12: 4294967284 -- .

ch 88: X

. / int , , .

b 255, , byte. b 257, , byte. , int byte .

s short 32 000 uint, , short. 64 000, short, . , uint short .

64 000 1 long. , 64 000 uint. -12, , uint. , long uint .

, char byte, , .

, . , . , short long, . , .

C# . , .

decimal, decimal ( float double, ).

double, double.

float, float.

ulong, ulong ( sbyte, short, int long, ).

long, long.

uint, sbyte, short int, long.

uint, uint.

int.

. -, . , float double decimal , , , ulong . .

-, . : , int. , char, sbyte, byte, ushort short int . . , int.

, , . , byte int , - byte. .

. , , byte, . byte int. , int. , , byte, int. , . .

// !

Using System;

class PromDemo {

static void Main() { byte b;

b = 10;

b = (byte) (b * ); // !!

Console.WriteLine("b: "+ b);

}

}

, b*b , byte! , b*b b int byte . , , , , .

. , char, chi ch2 int.

char chi = 'a', ch2 = 'b1;

chi = (char) (chi+ ch2);





:


: 2016-12-03; !; : 376 |


:

:

,
==> ...

1972 - | 1728 -


© 2015-2024 lektsii.org - -

: 0.008 .