I was struggling to fix a code today, then I come across something similar to:
typedef struct { int a; int b; int c; int d; char* word; } mystruct; int main(i
Use word=malloc(128);
word=malloc(128);
this will allocate 128 bytes to your varible word,