CSHARP_PROBLEMS_LIB Telegram 468
Каков будет результат короткой программы выше?

На выходе будет:
location is null
1/1/0001 12:00:00 AM

Обе переменные неинициализированы, но String со ссылочным типом, а DateTime — с типом значения. В качестве типа значения для DateTime устанавливается значение по умолчанию в полночь 1/1/1, а не null.



tgoop.com/csharp_problems_lib/468
Create:
Last Update:

Каков будет результат короткой программы выше?

На выходе будет:
location is null
1/1/0001 12:00:00 AM

Обе переменные неинициализированы, но String со ссылочным типом, а DateTime — с типом значения. В качестве типа значения для DateTime устанавливается значение по умолчанию в полночь 1/1/1, а не null.

BY Библиотека задач по C# | тесты, код, задания




Share with your friend now:
tgoop.com/csharp_problems_lib/468

View MORE
Open in Telegram


Telegram News

Date: |

fire bomb molotov November 18 Dylan Hollingsworth yau ma tei The court said the defendant had also incited people to commit public nuisance, with messages calling on them to take part in rallies and demonstrations including at Hong Kong International Airport, to block roads and to paralyse the public transportation system. Various forms of protest promoted on the messaging platform included general strikes, lunchtime protests and silent sit-ins. The imprisonment came as Telegram said it was "surprised" by claims that privacy commissioner Ada Chung Lai-ling is seeking to block the messaging app due to doxxing content targeting police and politicians. Don’t publish new content at nighttime. Since not all users disable notifications for the night, you risk inadvertently disturbing them. Image: Telegram.
from us


Telegram Библиотека задач по C# | тесты, код, задания
FROM American