strcpy

 #include <stdio.h>

#include <string.h>


int main() {

    // Write C code here

    char*str = "Hello";

    char str2[45];

    strcpy (str2 , str);

    

    printf("Str2 is now %s",str2);

    

    return 0;

}

Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings