SyntaxFix
Write A Post
Hire A Developer
Questions
sizeof(texts) on my system evaluated to 96: the number of bytes required for the array and its string instances.
sizeof(texts)
As mentioned elsewhere, the sizeof(texts)/sizeof(texts[0]) would give the value of 3 you were expecting.
sizeof(texts)/sizeof(texts[0])