smeacham

Structured Programming Example - Subroutines

Aug 30th, 2012
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. void function1(void) { /* some code */ }
  2.  
  3. int function2(void)
  4. {
  5.   return 5;
  6. }
  7.  
  8. char function3(int number)
  9. {
  10.   char selection[] = {'S','M','T','W','T','F','S'};
  11.   return selection[number];
  12. }
Advertisement
Add Comment
Please, Sign In to add comment