Data Types (Type Conversion)

mushtariy

Mushtariy

Posted on October 14, 2024

Data Types (Type Conversion)

a) Implicit va Explicit turdagi konversiyalar o'rtasidagi farq nima?

Implicit- kichik hajmdagi qiymatlarni katta hajmdagi qiymat turlariga osonlik bilan o'zgartirish mumkin.

Explicit bu o'zgarish katta hajmdagi qiymatni kichik hajmdagi qiymatga o'zgartirishda amalga oshiriladi. Ular uchun maxsus casting kerak bo'ladi.

b) Quyidagi kod qaysi turdagi konversiyalarni amalga oshiradi?

int x = 10;
double y = x;
Enter fullscreen mode Exit fullscreen mode

int double ga

💖 💪 🙅 🚩
mushtariy
Mushtariy

Posted on October 14, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related