This content originally appeared on DEV Community and was authored by Sunnat Qayumov
*a) Quyidagi data turlarining har birini qisqacha tushuntiring: *
int -> butun sonlar uchun ishlatiladi.
double -> kasr sonlar uchun ishlatiladi.
bool -> True or False.
char -> belgilar uchun ishlatiladi.
b) C# da decimal datat turi nimada ishlatiladi?
C# 4.0 dan boshlab, dynamic turi kiritilgan. Bu turda o'zgaruvchining tipi runtime paytida aniqlanadi. Misol:
dynamic o'zgaruvchi = 10;
Console.WriteLine(o'zgaruvchi.GetType()); // System.Int32
o'zgaruvchi = "Salom";
Console.WriteLine(o'zgaruvchi.GetType()); // System.String
This content originally appeared on DEV Community and was authored by Sunnat Qayumov

Sunnat Qayumov | Sciencx (2024-10-13T01:30:00+00:00) 17. Data Types. Retrieved from https://www.scien.cx/2024/10/13/17-data-types/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.