This small test program runs until the end of time (console linux ). Now my question is.Code:int main(int argc, char *argv[]) { int test; test = 0; while (1) { test++; } test--; printf("%d",test); return 0;
How do you make the while lus end by pressing a key or key combo?
Along the lines of: while("A" is not pressed) ....