I was making a software where, every time after the User would enter a number, automatically ENTER key will be pressed (I mean, The value will be assigned without pressing ENTER ).
Sample code:
#include<stdio.h>
int main(){
int i, num[10];
for(i=0; i<10; i++){
scanf("%d", &num[i]);
/*this is where I need help.
Every time after typing a single number, the program should store the value
and move on to next position without requiring the user to press ENTER. How do I
do that ? */
}