/*** Simulate helping a student*/
#include #include #include #include "ta.h"void help_student(int sleep_time, int student_number){ //printf("helping student %d for %d seconds waiting students = %d\n",student_number,sleep_time, waiting_students); printf("Helping a student for %d seconds waiting students = %d\n",sleep_time, waiting_students); sleep(sleep_time);}what are the errors in this code?
void help_student(int sleep_time, int student_number){ //printf("helping student %d for %d seconds waiting students = %d\n",student_number,sleep_time, waiting_students); printf("Helping a student for %d seconds waiting students = %d\n",sleep_time, waiting_students);
sleep(sleep_time);}
what are the errors in this code?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here