Skip to main content

Null

// NULL
// In C "NULL" It is defined to 0 by default
// ------------------------------------
// Declaring nullable
// ------------------------------------

// Any pointer can have a NULL value
// For more about Pointers, check "Pointer & Reference" Section
int* myPointer = NULL;
int* myPointer = 0;

// Basic Types like int, float etc should not have null as value
// ------------------------------------
// Working with nullable types
// ------------------------------------

// Optional Chaining Operator (?)
// Not available, you need to use a condition


// Nullish Coalescing Operator (??)
// Not available, you need to use a condition

More Info: