strcmp for string matching


The task is to compare two strings. Make use of the strcmp() in string.h. Input can be of uppercase, lowercase or both.


#include <stdio.h>
//using namespace std;
int main()
  char str1[100], str2[100];
 scanf("%s", str1);
 scanf("%s", str2);

  printf("Entered strings are equal");
      printf("Entered strings are not equal");

	return 0;
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock