Well those are some nice tricks. Why not explicitly list the arguments for printf though, so the compiler does not have to guess?
What happens if there is more than one string?
My output: Hello, lalalalal, how old are you?
int main ( void )
printf("Hello, %s, how old are you? ");
printf("So you are %d years old!\n", a);
Now if I change the printf to look like this:
Then I get the expected output:
printf("Hello, %s, how old are you? ", name);
Hello, peter, how old are you?
And if you know enough to apologise for using getch with conio.h, why don't you know enough not to include it?