#include <stdio.h>
#include <string.h>

int main()
{
    char str[] = "Nagpur";
    str[0]='K';
    printf("%s, ", str);
    strcpy(str, "Kanpur");
    printf("%s", str+1);
    return 0;
} 

Embed on website

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