Computer Science, asked by nilakshi2452, 1 year ago

If the two strings are identical then strcmp() function returns

Answers

Answered by jai696
1

\huge{\mathtt{{\blue{\boxed{\tt{\pink{\orange{A}\purple{n}\blue{s}\red{w}\green{e}\pink{r᭄}}}}}}}}

If the two strings are identical then strcmp() function returns zero

\huge\blue{\mid{\fbox{\tt{Explanation}}\mid}}

C comparison functions like int strcmp(char* a, char* b); return zero when the values are equal. A comparison function measures greater than and less than as well as equality.

Comparison Function Return Values

  1. a < b less than returns (-1)
  2. a == b equality returns zero
  3. a > b greater than returns +1

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions