Related Questions

Point out the error (if any) in the following C code?
#include #include int main(void){ int* p = NULL; struct S *s = NULL; void(*f)(int, double) = NULL; char *ptr = malloc(15); if (ptr == NULL) printf("Out of memory"); free(ptr);}
The following question has two statements. Study the question and the statements and decide which of the statement(s) is/are necessary to answer the question. Each of the 20 racks of garment shop contains either only shirts, only jeans, or a mixture of shirts and jeans, how many racks contain only shirts? Statement I: 18 racks contain jeans and 14 racks contain shirts. Statement II: 6 racks contain jeans only.