CompuServe Messages

#C subroutines?

    19-Aug-94 16:31:21
Sb: #42039-#C subroutines?
Fm: TJ BANDROWSKY 73303,2470
To: Peter Greci 76104,2110
declaring a C subroutine (example) int my_routine(char *p) { int i = 0; while (*p) p++; i++; } return i; } main() { printf("%d\n", my_routine("hello")); } should yield the output of 5. To learn C programming, there is only one book that you need: The C programming language, by Dennis Kernighan and Brian Ritchie.