char s1[7] = "hello";
memset(s1, 0, sizeof(s1)); // обнуляем
strcpy(s1, "hello"); // копируем
char s1[7];
sprintf(s1, "hello");
strcpy(s1, "hello");
#include <stdio.h>
int main(void)
{
char s1[7];
sprintf(s1, "hello");
printf("%s\n", s1);
return 0;
}