Guest User

Untitled

a guest
Aug 10th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Terminology: Forward Declaration versus Function Prototype
  2. struct Foo;
  3.  
  4. char *foo(); // NOT the same as char *foo(void)
  5.  
  6. int foo(char *str_one, char *str_two, char *str_three);
  7.  
  8. int foo(char *str_one, char *str_two);
  9.  
  10. int foo(int a, char *b) {...}
  11.  
  12. int foo(); // a declaration, but not a prototype
  13. int foo(a, b); // a declaration, but not a prototype
  14. int foo(int, char *); // a declaration and a prototype
  15. int foo(int a, char *b); // a declaration and a prototype
Add Comment
Please, Sign In to add comment