On Monday, 23 August 2021 at 13:00:36 UTC, DLearner wrote:
Hi
The code below compiles and runs producing 'Not null'.
```
void main()
{
import std.stdio;
int Var1;
int* ptrVar;
ptrVar = &Var1;
if (ptrVar == null) {
writeln("Null");
} else {
writeln("Not null");
Hi
The code below compiles and runs producing 'Not null'.
```
void main()
{
import std.stdio;
int Var1;
int* ptrVar;
ptrVar = &Var1;
if (ptrVar == null) {
writeln("Null");
} else {
writeln("Not null");
}
}
```
However, should it not fail to compile, as '=