Q:

strcat in c

Upon completion, strcasecmp() shall return an integer greater than, equal to, or less than 0, if the string pointed to by s1 is, ignoring case, greater than, equal to, or less than the string pointed to by s2, respectively.
1
#include <stdio.h>
#include <string.h>

int main() {
   char str1[100] = "This is ", str2[] = "A Name";

   // concatenates str1 and str2
   // the resultant string is stored in str1.
   strcat(str1, str2);

   puts(str1);
   puts(str2);

   return 0;
}
2
strcat(example, "is over 10 ");   
1

New to Communities?

Join the community