3 ms·
s is still a pointer to character. This is just an optimised shorthand for (assuming ASCII): char s[3]; Which is then initialised with: 0x48,0x69,0x00 There
by Quis_sum 2y ago
s is still a pointer to character.
This is just an optimised shorthand for (assuming ASCII):
char s[3];
Which is then initialised with:
0x48,0x69,0x00
There simply is no such thing as a string type in C.
All the "string" functions work on a char pointer which is incremented until it points to a 0.