I am not so clear on character pointer and how they work.
The program builds, but crashes when I run it.
char *ab = NULL; //ab = \"abc123\"; // works f
You can do this
char ab[10]; //allocate memory sprintf(ab, "abc%d", 123);