printf("enter choice: ");
scanf("%d", &choice);
if(choice==1)
do this;
if(choice==2)
do that;
if(choice==(Enter key))
do something;
How can i make so that when the user hits the enter key, it records that as a choice and does whatever is in that if statement, instead of just going to the next line and waiting for a proper input.