I found similar questions to mine, but I still can't figure out why my code is acting the way it is.
I have a struct called "rectangle", and here is the code that I am trying to run:
Rectangle *newRect = (Rectangle *)malloc(sizeof(Rectangle));
Rectangle *newRect2 = (Rectangle *)malloc(sizeof(Rectangle));
printf("rect1: %p rect2: %p",newRect,newRect2);
It outputs the same address for both of them, what am I doing wrong?
Thanks!