1) Rating Input: Using a while loop for rating validation simplifies the flow and clears invalid input only when necessary.
2) perror for fopen Error: Provides detailed error information.
3) Comment Length Restriction: Uses MAX_COMMENT_LENGTH directly for safe fgets input.
4) Name Safety Check: Avoids overflow by enforcing MAX_NAME_LENGTH for feedback.name.
1) Rating Input: Using a while loop for rating validation simplifies the flow and clears invalid input only when necessary. 2) perror for fopen Error: Provides detailed error information. 3) Comment Length Restriction: Uses MAX_COMMENT_LENGTH directly for safe fgets input. 4) Name Safety Check: Avoids overflow by enforcing MAX_NAME_LENGTH for feedback.name.