CodesC/TP4/char.c

22 lines
225 B
C
Raw Permalink Normal View History

2021-10-21 09:50:20 +00:00
#include <stdio.h>
#define N 5
int main () {
char hello[] = "hello";
2023-11-10 11:51:13 +00:00
2021-10-21 09:50:20 +00:00
int i ;
for (i = 0 ; i< N ; i++) {
printf("%c",hello[i]);
}
printf("\n");
printf("%s\n",hello);
puts(hello);
return 1;
}