DEV Community

Mushtariy
Mushtariy

Posted on

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

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

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

Okay