Using strcpy

 #include<stdio.h>

#include <string.h>


int main(){

    char *st = "This";

    char st2[45];

    strcpy(st2, st);

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

    return 0;

}

Comments

Popular posts from this blog

Snake game.c

Rainbow

bird game