Guest_imported
New member
- Jan 1, 1970
- 0
I want to concatenate an integer at the end of a string.
I am doing like this
int a=7;
char abc[50]="c:\\errorlog\\";
strcat(abc,((char*)a));
strcat(abc,"file.java"
;
This code doesn't give a error while compiling ,But gives a runtime error.
Kindly help me ..
I am doing like this
int a=7;
char abc[50]="c:\\errorlog\\";
strcat(abc,((char*)a));
strcat(abc,"file.java"
This code doesn't give a error while compiling ,But gives a runtime error.
Kindly help me ..