Data types – ma’lumot turlari.

integer -> int:

Bu butun sonlar uchun ishlatiladi.

Long:

Bu butun sonlar uchun ishlatiladi. Hotirani kuchaytirib beradi.

short:

Butun sonlar uchu…


This content originally appeared on DEV Community and was authored by Sunnat Qayumov

                             integer -> int:

Bu butun sonlar uchun ishlatiladi.

                             Long:

Bu butun sonlar uchun ishlatiladi. Hotirani kuchaytirib beradi.

                             short:

Butun sonlar uchun ishlatiladi.

                             double:

Kasr sonlar uchun ishlatiladi.

                             float:

Kasr sonlar uchun ishlatiladi.

                             string:

Tekst va matnlar uchun ishlatiladi.

                             char:

Bu belgilar uchun ishlatiladi.

                             Data typelarning xotiradagi joyi:

int -> 4 byte.
float -> 4 byte.
double -> 8 byte.
string -> 32 byte.
char -> 1 byte.

                            using System;

class Program
{
static void Main()
{
    // byte: 8-bit unsigned integer (0 to 255)
    byte myByte = 255;
    Console.WriteLine("byte: " + myByte);

    // sbyte: 8-bit signed integer (-128 to 127)
    sbyte mySByte = -128;
    Console.WriteLine("sbyte: " + mySByte);

    // short: 16-bit signed integer (-32,768 to 32,767)
    short myShort = -32768;
    Console.WriteLine("short: " + myShort);

    // ushort: 16-bit unsigned integer (0 to 65,535)
    ushort myUShort = 65535;
    Console.WriteLine("ushort: " + myUShort);

    // int: 32-bit signed integer (-2,147,483,648 to 2,147,483,647)
    int myInt = -2147483648;
    Console.WriteLine("int: " + myInt);

    // uint: 32-bit unsigned integer (0 to 4,294,967,295)
    uint myUInt = 4294967295;
    Console.WriteLine("uint: " + myUInt);

    // long: 64-bit signed integer (-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807)
    long myLong = -9223372036854775808;
    Console.WriteLine("long: " + myLong);

    // ulong: 64-bit unsigned integer (0 to 18,446,744,073,709,551,615)
    ulong myULong = 18446744073709551615;
    Console.WriteLine("ulong: " + myULong);
}


This content originally appeared on DEV Community and was authored by Sunnat Qayumov


Print Share Comment Cite Upload Translate Updates
APA

Sunnat Qayumov | Sciencx (2024-08-09T14:59:21+00:00) Data types – ma’lumot turlari.. Retrieved from https://www.scien.cx/2024/08/09/data-types-malumot-turlari/

MLA
" » Data types – ma’lumot turlari.." Sunnat Qayumov | Sciencx - Friday August 9, 2024, https://www.scien.cx/2024/08/09/data-types-malumot-turlari/
HARVARD
Sunnat Qayumov | Sciencx Friday August 9, 2024 » Data types – ma’lumot turlari.., viewed ,<https://www.scien.cx/2024/08/09/data-types-malumot-turlari/>
VANCOUVER
Sunnat Qayumov | Sciencx - » Data types – ma’lumot turlari.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/09/data-types-malumot-turlari/
CHICAGO
" » Data types – ma’lumot turlari.." Sunnat Qayumov | Sciencx - Accessed . https://www.scien.cx/2024/08/09/data-types-malumot-turlari/
IEEE
" » Data types – ma’lumot turlari.." Sunnat Qayumov | Sciencx [Online]. Available: https://www.scien.cx/2024/08/09/data-types-malumot-turlari/. [Accessed: ]
rf:citation
» Data types – ma’lumot turlari. | Sunnat Qayumov | Sciencx | https://www.scien.cx/2024/08/09/data-types-malumot-turlari/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.