DEV Community

Mushtariy
Mushtariy

Posted on

Data Types

a) C# da Nullable turlari nima uchun ishlatiladi?

ma'lumotlar bazasidan ma'lumot olishda yoki qiymatning yo'qligini tekshirishda.

b) Quyidagi kodning natijasi nima bo'ladi?

int? z = null;

if(z.HasValue)
{
    Console-WriteLine(z.Value):
}
else
{
    Console WriteLine("z is null");
}

Enter fullscreen mode Exit fullscreen mode

blmima

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