Computer Science, asked by Vikuu8817, 11 months ago

What is string? Explain strlen() and strcmp() function with proper syntax.

Answers

Answered by Anonymous
0

size_t strlen(const char *s); The strlen() function shall compute the number of bytes in the string to which s points, not including the terminating null byte. It returns the number of bytes in the string. No value is used to indicate an error.

Answered by Anonymous
0

A string is a data type used in programming, such as an integer and floating point unit, but is used to represent text rather than numbers. It is comprised of a set of characters that can also contain spaces and numbers. For example, the word "hamburger" and the phrase "I ate 3 hamburgers" are both strings.

Similar questions