#include <stdio.h>
int main() {
// Are they equal? Yes!
char zc = '\0';
char zi = 0;
printf("%d\n", zc == zi);
// Does setting a char to 0 terminate a string? Yes!
char s[] = "hello, world";
printf("%s\n", s);
s[5] = 0;
printf("%s\n", s);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: