In Below Code When I want to Enter Record of second student or >2 student .. Compiler skip Name Input and take Input for class and age .. What a problem please help me ?
The problem is common enough. Try this:
scanf("%d ", &a[i].age); ^ <--- This space will make scanf eat the remaining blanks
There are C FAQs about this:
Secondary notes:
fgets