Write a function that finds out length of a string? (Don’t use predefined functions)
Int str_len(char*);
int str_len(char* foo) { int l = sizeof(foo)/sizeof(*foo); return l-1; }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment