Check out example codes for "strcmp c cs50". It will help you in understanding the concepts better.

Code Example 1

// use: strcmp(string1, string2);

string a = "words";
string b = "words";

if (strcmp(a, b) == 0)
	printf("a and b match");
  	// strcmp returns 0 if both strings match

	printf("a and b don't match");
  	// strcmp returns anything else if the strings dont match

Learn ReactJs, React Native from