int StrCmp(const char* s1, const char *s2 /*Compares the string s1 with the string The function returns e, -1 or 1 if s1 equal to , less than or greater than s2 , respectively. */ { } Example01: s1 => "Happy New Year" s2 => "Happy New Year" StrCmp(s1, s2) will return 0

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 23PE
icon
Related questions
Question

c++

int StrCmp(const char* s1, const char *s2)
/*Compares the string s1 with the string s2.
The function returns 0 , -1 or 1 if s1 is
equal to , less than or greater
than s2 , respectively. */
{
}
Example01:
s1 => "Happy New Year"
s2 => "Happy New Year"
StrCmp(s1, s2) will return e
Transcribed Image Text:int StrCmp(const char* s1, const char *s2) /*Compares the string s1 with the string s2. The function returns 0 , -1 or 1 if s1 is equal to , less than or greater than s2 , respectively. */ { } Example01: s1 => "Happy New Year" s2 => "Happy New Year" StrCmp(s1, s2) will return e
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning