I have yet another newbie C question: Why does the first member of a struct return an adress not similar to the structs own pointer-adress when not initialized?
Example:
struct Metadata {
int message_ID;
//other members...
//...
};
struct Metadata* baseMetadataPtr = (struct Metadata*) malloc(sizeof(struct Metadata)*100);
printf("baseMetadataPtr: %d\n", baseMetadataPtr);
//consoll says "baseMetadataPtr: 2636496"
printf("baseMetadataPtr->message_ID: %d\n", baseMetadataPtr->message_ID);
//consoll says "baseMetadataPtr->message_ID: 2621636"