SyntaxFix
Write A Post
Hire A Developer
Questions
You could try this:
int lengthChar(const char* chararray) { int n = 0; while(chararray[n] != '\0') n ++; return n; }