There's a string with four numbers and a \0 sign, which's making it needing array size of 5:
Now, i want to connect three of these strings with sprintf:Code:char string[5] = "1234";
Now, what array size should string StringSonnected have?Code:sprintf(StringsConnected,"%s%s%s",string,string,string) // probably not the best way, but still ...
- 13, for 123412341234 and \0 or
- 15, for 1234\01234\01234\0 or
- even 16, for 1234\01234\01234\0\0?
Thanks!