Quiz on String Functions

Check your understanding of string functions by completing this quiz.

1

Consider the following code snippet:

char s1[ ] = "Good Morning" ;
char s2[ ] = "Good Evening" ;
int i ;
i = strcmp ( s1, s2 ) ;

Is it correct to say that s1 is the target string and s2 is the source string?

A)

Yes

B)

No

Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.