2023-01-09 03:49 PM
I have assigned the string into the char array as "example\n". How do I put the "\n" character in front of the "example\n". I wanted like this "\nexample\n" on the char array
2023-01-09 06:56 PM
#include "string.h"
memmove(str[0]+1, str[0], strlen(str[0]));
str[0][0] = '\n';