typedef struct data_type {
int duration;
char name[20];
char location[20];
} memory;
memory *source_of_emo;
source_of_emo = (memory*) malloc( sizeof(*source_of_emo) );
source_of_emo->duration = 70;
strcpy( source_of_emo->name, “sikret heehee” );
strcpy( source_of_emo->location, “sikret ulit heehee” );
printf( “kilcher is remembering the memory %p with the name of %s who is located at %s. memory length is %d”, source_of_emo, source_of_emo->name, source_of_emo->location, source_of_emo->duration);
.
.
.
free( source_of_emo );
.
.
.
free( source_of_emo );
.
.
.
ERROR: pointer source_of_emo does not respond;
.
.
.
free( source_of_emo );
.
.
ERROR: pointer source_of_emo does not respond;
.
.
.
ANUBAH! ANAK NG TINALUPANG TINOLA NAMAN! CTRL-ALT-DEL FORCE SHUTDOWN!
——-
Gomen ne. Rusty na ang aking C skills. Kung mali, hayaan na lang hehe. At shoutout kay Apols ⇁Ekasalanan mo ito haha.