M
Mark S.
Hi,
let's say I have following array of strings:
string s[] = { "This ", "is ", "a ", "very strange test." };
Am I correct in my line of thought that since each element somehow has a
size of 4 and the total size of the array is 16, I can use
sizeof(s)/sizeof*(s) as I would with other built-in types?
Or is there something else to consider? And why is the size of the
string always 4?
Kind regards
Mark
let's say I have following array of strings:
string s[] = { "This ", "is ", "a ", "very strange test." };
Am I correct in my line of thought that since each element somehow has a
size of 4 and the total size of the array is 16, I can use
sizeof(s)/sizeof*(s) as I would with other built-in types?
Or is there something else to consider? And why is the size of the
string always 4?
Kind regards
Mark