1090. How do we know that we will get the memory requested?

 

We must check to make sure using the code:

 

            If (newdata == NULL)

            {

                        cout << “Memory Allocation Failed – Program Aborted\n”;

                        return(0);

            }