Thanks for all feedback.
base on statement above am i right to say code below will not work correctly ?
y.field1 = (char*)malloc(4)
strcpy(y.field1,"123");
Type: Posts; User: kakarato
Thanks for all feedback.
base on statement above am i right to say code below will not work correctly ?
y.field1 = (char*)malloc(4)
strcpy(y.field1,"123");
When i try code below i still able to access y.field1 value even after free it. Is it anything wrong with my code ?
typedef struct
{
char* field1;
char* field2;
}lookup;
void...