I may be being stupid, but can you guys confirm that the following tests are logically equivalent
also, is this approach for an array of integers valid:Code:char *sring; .... if(string) { free(string); } ... if(string != NULL) { free(string); }
I lost a few brain cells over the weekend!!!Code:int *numbers; number = malloc(sizeof(int) * 10); .... if(number)free(number);