I read that you have to use getch() twice to get a value when an arrow key is pressed. The first call returns 0 for arrow keys and the second call returns another value (eg. 77 for right arrow keys). I wrote the following program to confirm this, but the first value I get is 224, not zero:
#include <stdio.h>
int main()
{
printf("Start: (x to quit)\n");
int d = getch();
int e = getch();
printf("%d", d);
printf("\n%d", e);
}
Why is the first value not zero, and what is the significance of 224?