/* Comparision of two string */
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
	char a[50],b[50];
	int n;
	clrscr();
	printf("enter the first string\n");
	scanf("%s",a);
	printf("Enter the second string\n");
	scanf("%s",b);
	n=strcmp(a,b);
	if (n==0)
		printf("Strings are equal");
	else
		printf("Strings are not equal");
	getch();
}
/*
	input :
	enter the first string
	arul
	enter the converted char
	ARUL
	output:
	Strings are not equal

   Exercise 1: Comparison of two string (case sensitive)
		Hint: n=stricmp(a,b)
		input : arul
			ARUL
		output: Strings are equal
	    2: Compare number of left n char
		      n=strncmp(a,b,n)
	    3. Compare number of left n char (case sensitive)
		      n=strnicmp(a,b,n)
*/