daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top