[Solved] Could someone explain what this simple c code would do? [closed]
Woo, it’s been a long time since I dealt with C pointers, but let me see if I can help. Coordinate_T *p; declares a pointer to a Coordinate_T struct. We don’t have any memory available yet, we just have a pointer to… nothing. p = (Coordinate_T *)malloc(sizeof(Coordinate_T)) actually allocates the memory for us. Now p … Read more