Quote Originally Posted by transgalactic2 View Post
it doesnt work
Of course not. You don't have a Null terminator at the end of your string. So strlen will go off searching through memory until it finds one.
if you wrote:
Code:
char arr[6]={'a','b','c','d','e', '\0'};
That should work.

Quantumpete