Need to allocate memory for structures, having array of pointers to them using pointer arithmetic. Is it possible?
Code:pointer_to_str_type *p = malloc(10 * sizeof(pointer_to_structure_type)); for(int i=0;i<10;i++){ p+i = malloc(sizeof(str)); // error: left side must be lvalue p[i] = malloc(sizeof(str)); // ok }