I have a C++ array declared as mentioned below:
CString carray[] = { \"A\", \"B\", \"C\", \"D\", \"E\" }
Yes. In case the declared element type ever changes, you could also write
int iLength = sizeof(carray)/sizeof(carray[0]);