BasicKnowledgeCSharp/LessonsAndTasks/Lesson 39 - Что такое NULL/Program.cs
Dvurechensky 058c8f2679 1.0
Main
2024-10-05 09:59:53 +03:00

39 lines
436 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
/*
* Что такое NULL
*/
class MyClass
{
}
struct MyStruct
{
}
class Program
{
static void Heap()
{
int[] a = new int[10];
}
static void Main()
{
bool b;
int a;
double d;
//У классов - NULL
Random random;
int[] arr;
MyClass myClass;
MyStruct myStruct;
Heap();
Console.ReadKey();
}
}