|
|
|
|
|
by plikan13
4225 days ago
|
|
You're right about the implicit conversions but "buffer" is not a pointer to char. The type of buffer is "array of 10 chars" and sizeof(buffer) equals 10, not sizeof(char*) which usually will be 4 or 8. Personally, being a lazy typist, the implicit conversions from array to pointer-to-first-element have never bothered me as it allows you to write terse code and the cases where stuff gets complicated are rare and can be clarified by typedefs, as somebody already pointed out. |
|