I'm quite new to programming and have been looking at a few example codes, I would just like to know what is meant by the if(!pi)
statement in this code.
// allocate and populate array
int* pi = new int[N];
if (!pi)
return 1;
for (int i = 0; i < N; i++)
pi[i] = rand() % 100000;