#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
/*the right code will be: char *a = (char *)malloc(4 * sizeof(char));*/
char * a = "abc";
const char * b = "def";
/*error: because you can not write to an constant character*/
a = strcpy(a, b);
printf("%s/n", a);
return 0;
}