I have set a structure type:
typedef struct {
char *snt[MAX_LINE_LENGTH];
} sentence;
And this line is getting a cast specifies array type
error:
sentence copySentence(sentence *source) {
sentence nw;
nw.snt = (char *[])source->snt; //Here is the error
return nw;
}
What is the best fix for this code line and what is the problem?