Here\'s my code
#include #include int main(){ char pal[8] = \"ciaooaic\"; char pal1[7] = \"ciaoaic\"; int lenPa
You have not kept space for the NULL terminating character \0.
\0
Either increase the size of the array by 1
1
char pal[9] = "ciaooaic"; char pal1[8] = "ciaoaic";
OR
Do not specify the length at all
char pal[] = "ciaooaic"; char pal1[] = "ciaoaic";