Post

#### ANSWER ####
#### ANSWER ####
#### ANSWER ####
#### ANSWER ####
#### ANSWER ####
#### ANSWER ####
#### ANSWER ####
#### ANSWER ####
#### ANSWER ####
#### ANSWER ####
#### ANSWER ####
#### ANSWER ####
(A)
Structs indeed cannot be null however in this example code myColor is not a Struct but rather a Nullable. Note the Question mark ? after the type, that marks the type as Nullable.
When you make something Nullable you can make that type null, regardless of what that type is.
This is all valid code:
Color? myColor = null;
int? myInt = null;
bool? myBool = null;
I have a lecture on Nullables in my C# Course youtube.com/watch?v=qZpMX8…

YouTube
English

@UnityCodeMonkey Absolutely diabolical putting 'B' as the first answer lol
English