//standard library functions
#include <stdio.h>
#include <string.h>

int main() {
    char name[]= "Shradha";
    int length = strlen(name);//to get length of string
    printf("length is %d",length);
    printf("\n");
    
    char oldStr[] = "oldStr";
    char newStr[] = "newStr";
    strcpy(newStr,oldStr);//to copy one string inside other
    puts(newStr);
    
    char a[]="Honey";
    char b[]="Bee";
    strcat(a,b);// concatenates first string with second string
    puts(a);
    
    printf("%d",strcmp(a,b)); // compare the two strings ascii value
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: