1 #include <stdio.h> 2 3 typedef enum { 4 ERROR, 5 OK 6 } status_t; 7 8 int main(void) 9 { 10 11 status_t isworking = OK; 12 13 if (isworking == 1) 14 printf("OK\n"); 15 else 16 printf("ERROR\n"); 17 18 return 0; 19 } 20 21
9511_workbooksolved exercises from algorithms & programming I (9511) prof. Cardozo |