#include #include int main(int argc, char *argv[]) { char string[] = \"october\"; // 7 le
You must eliminate buffer overflow problem in this example. One way to do this - is to use strncpy:
strncpy
memset(string, 0, sizeof(string)); strncpy(string, "september", sizeof(string)-1);