#include <stdio.h>
char s[5];
int i;
int main() {
s[0] = 'C';
s[1] = 'i';
s[2] = 'a';
s[3] = 'o';
s[4] = '\0'; // <= terminatore
// metodo base solo per capire
// stampo tutti i caratteri della stringa ma non il terminatore
for(i=0;i<5;i++) {
if( s[i] != '\0' ) {
printf("%c",s[i]);
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: