The question is pretty much in the title. The code void modify_str(char* str){ if(strlen(str) > 5) { str[5] = 'x'; } } Will invoke undef
I know the variables in function are using stack space. When function exit, the space are freed. That's why we should declare the pointer variable as static in
Okay, So I start working on this, I have code below; +I also have strlen("any string here") func that return len of any str in decimal just keep in your mind. I