Under what conditions could this code:
produce this output:Code:filelen=strlen(word+1); file=malloc(filelen); strcpy(file,word); printf("filelen: %d, %s\n", filelen,file);
Example 1: filelen: 7, cynosure
Example 2: filelen: 4, twalk
"file" is a char pointer, "filelen" is a short int.