int main(int argc, char *argv)
char name_array ;
char course_array ;
for (loop = 0; loop < 4; loop++)
puts("Now enter course");
The above is a code fragment that doesn't work as I want. The gets function will accept a string on the first iteration but after that the program skips gets and goes directly to the puts and scanf. Why is this? IF the puts and scanf are removed the loop works ok and I can complete the array. What is going on here or am I going crazy.