Which of the following function is correct that finds the length of a string? int xstrlen(char *s){
Fantastic news! We've Found the answer you've been seeking!
Question:
Which of the following function is correct that finds the length of a string?
int xstrlen(char *s){ int length=0; while(*s!='0') { length++; s++; } return (length);}int xstrlen(char s){ int length=0; while(*s!='0') length++; s++; return (length);}int xstrlen(char *s){ int length=0; while(*s!='0') length++; return (length);}int xstrlen(char *s){ int length=0; while(*s!='0') s++; return (length);}
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date: