syntax:
strcpy(string1,”sri”);
strcpy(string2,”Bhagavan”);
Printf(“%s”,strcat(string1,string2);
From the above program segment the value of string1 becomes sribhagavan. The string at str2 remains unchanged as bhagawan.
Example:
strcmp(“Newyork”,”Newyork”)
will return zero because 2 strings are equal.will return a 9 which is the numeric difference between ASCII ‘i’ and ASCII ’r’.strcmp(“their”,”there”)
Example strcmpi(“THE”,”the”);
will return 0.