i am using visual studio 2013 for desktop and i have run time fail with the string i don't know why this isn't working.
int main(void)
{
char string[MAX1] = "THANK ";
char you[MAX2] = "u";
strncat(string, you, 1); //without fix this line or the next one
printMessage(string);
return 0;
}
it is running only when i am putting getchar at the end. it is working with other programs like notepad++.
MAX1=7. MAX2=2.