Jump to content

Thue-Morse: Difference between revisions

m
→‎{{header|C}}: no point in malloc'ing a fixed length for local use
(Added C implementation)
m (→‎{{header|C}}: no point in malloc'ing a fixed length for local use)
Line 44:
 
int main(int argc, char *argv[]){
char *sequence = malloc([256+1)] = "0";
char *inverse[256+1] = malloc(256+"1)";
char *buffer = malloc([256+1)];
int i;
strcpy(sequence, "0");
strcpy(inverse, "1");
for(i = 0; i < 8; i++){
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.