Answers for "c copy string to char array"

C
1

c modify char array

char name_buf[5] = "Bob";
name_buf = "Alice";   // error
strcpy(name_buf, "Alice");
Posted by: Guest on August-24-2020

Code answers related to "C"

Browse Popular Code Answers by Language