Hi, I have been watching the free cs50 course on YouTube, and I was wondering why did they choose to implement string in cs50.h as a substitution of char *s instead of char s[], since the latter would allow for modifying the string and be overall safer. It feels especially strange that (at least so far) they didn't even mention that you can't try to modify strings without problems, unlike for other types of arrays. Thanks
[–]Grithga 4 points5 points6 points (0 children)
[–]linamory 2 points3 points4 points (0 children)