Could anyone explain to me what I am doing wrong here please?
I get this error:Code:void testFree(){ char * s=(char *)calloc(sizeof(char),5); sprintf(s, "[%d]",321); printf(s); free(s); return; }
Could anyone explain to me what I am doing wrong here please?
I get this error:Code:void testFree(){ char * s=(char *)calloc(sizeof(char),5); sprintf(s, "[%d]",321); printf(s); free(s); return; }