Using strcat

#include<stdio.h>

#include <string.h>


int main(){

    char st1[45] = "Hello";

    char *st2 = "sunil";

    strcat(st1, st2);

    printf("Now the st1 is %s", st1);

    return 0;

}

Comments

Popular posts from this blog

Snake game.c

Type declaration

Array with function