Ctrl+D tells the line based program that your input is done.

Ctrl+C exits the program, by interrupting the shell.