Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- /* prototype */
- void foo(); /* valid in C but not C++ */
- int main()
- {
- foo(1);
- /* foo(); no, it is illegal. */
- return 0;
- }
- /* implementation */
- void foo(int n)
- {
- printf("%d\n", n);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement