- Nov 16, 2006
- 557
- 0
- 0
Is this a segfault error?
char hex[4];
hex[4]='\0';
I mean if it was int hex[4], you could use hex[4]=0, or whatever.
I always thought you couldn't use the last byte of a character array, because the last byte was set to null, so why can't I do that myself in the program?
Comments?
Thanks
char hex[4];
hex[4]='\0';
I mean if it was int hex[4], you could use hex[4]=0, or whatever.
I always thought you couldn't use the last byte of a character array, because the last byte was set to null, so why can't I do that myself in the program?
Comments?
Thanks
