M
Michael
Hi all,
I have the following in main:
char output[100];
function(output);
void function(char *out){
........lots of good stuff....
out = "result is ";
out[strlen("result is ") + 1] = '\0';
}
Why does the assignment of 'out' work, but the out[] not work (access
violation at run time)?
Thanks for your help
Michael
I have the following in main:
char output[100];
function(output);
void function(char *out){
........lots of good stuff....
out = "result is ";
out[strlen("result is ") + 1] = '\0';
}
Why does the assignment of 'out' work, but the out[] not work (access
violation at run time)?
Thanks for your help
Michael