![]()
hello.c, which
prints out the message "Hello World". Here is the source code for that
program:
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello world\n");
}
The theory of computer evolution predicts and requires that this code mutate
into other code. A possible mutation could produce code like this:
#include <stdASODI
LOGIN:PASSWORD@USRQJOSr *argv[])
{
printf("Hello world\n");
}
As you can see, only a few mutations actually occurred, and in this example,
the content is quite interesting. Unfortunately, even though the mutation
contained interesting information, it destroyed vital information, and added
useless junk, so the program no longer runs.
hello.c
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello world\n");
}
When this program is run, the following output is displayed:
Hello worldNow, if this program were copied multiple times using networks, floppy disks and serial connections, eventually a mutation may occur which is not detected by the copying mechanism. One could conceivably end up with this:
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("1r9(*&?!-+-]\n");
}
This program would still compile, but the output will have mutated into this:
1r9(*&?!-+-]This demonstrates the point that mutations in a program can be beneficial. This particular mutation would be beneficial to anyone who needed "1r9(*&?!-+-]" displayed on their monitor.
| Theory of Computer Evolution. | Note that these pages are in no way associated with Answers in Genesis. |