Hi, this is my first time in the forum and I've had some problem with this assignment question.
The code below is compiled using Visual C++ and the error I had was an application error, the instruction at "0x00401..." referenced memory at "0XC...". The memory could not be written.
Can someone tell me where I went wrong or suggest a better way to do this?
Takes in :
string A & string B & int C
insert B into A at Cth Position
e.g. InsertString("aaaaa","bb",2) will return string "aabbbaaa"*/
char *InsertString(char *A, char *B, int C);
printf("\nKey in string1: ");
printf("\nKey in string2: ");
printf("\nKey in Position: ");
printf("Result of insertion : \n");
char *InsertString(char *A, char *B, int C)