I was asked to do a work in C when I\'m supposed to read from input until there\'s a space and then until the user presses enter. If I do this:
scanf(\"%2000
I am too late, but you can try this approach as well.
#include #include int main() { int i=0, j=0, arr[100]; char temp; while(scanf("%d%c", &arr[i], &temp)){ i++; if(temp=='\n'){ break; } } for(j=0; j