DEV Community

Mushtariy
Mushtariy

Posted on

Data types

a) Quyidagi oz'garuvchilarni qiymat turlariga ajrating: int, float, string, bool.

int — butun sonlarni saqlash uchun.
double — kasr sonlarni saqlash uchun.
char — belgini saqlash uchun.
string — matnni saqlash uchun.
bool — true yoki false ni saqlash uchun.

b) float va double o'rtasidagi farq nima?

Xotirasida farqi bor float 4byte double 8byte

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay