Question

Complete the C function to calculate the length of a null-terminated string s without using strlen. int custom_strlen(const char*
s) {     int length = 0;     while (_________ ) { // Line to complete         length++;     }     return length; }

A s[length] != '\0'
B s[length] == '\0'
C s != NULL
D s[length]
E *s != '\0'
Practice Next

Hey! Ask a query