C++ double* array, test allocation
===

I have some doubt: I want to test whether some arrays, low and high, have been allocated before function call. The function begins with this test:

    bool myMgr::compute(myInput *solvInput, double* low, double* high)
    {
	   if(high==NULL||low==NULL)
		    return false;

       //...
    }

Am I testing anything, am I testing it right?

Thanks and regards