MIPI_AdvancedC_FRTK/Lect4/49.c

15 lines
264 B
C
Raw Permalink Normal View History

2024-11-14 08:45:50 +03:00
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
char s[]="hello world";
printf("s[9]=%c\n",s[9]);
//~ strncpy(s,"erase", 10);
strcpy(s,"erase");
printf("%s\n", s);
printf("s[9]=%c\n",s[9]);
return 0;
}