| 1 | #include <stdio.h> |
|---|---|
| 2 | extern "C"int func_from_c(); |
| 3 | extern int func_from_cpp(); |
| 4 | |
| 5 | int |
| 6 | main() |
| 7 | { |
| 8 | func_from_c(); |
| 9 | func_from_cpp(); |
| 10 | return 0; |
| 11 | } |
| 12 |
| 1 | #include <stdio.h> |
|---|---|
| 2 | extern "C"int func_from_c(); |
| 3 | extern int func_from_cpp(); |
| 4 | |
| 5 | int |
| 6 | main() |
| 7 | { |
| 8 | func_from_c(); |
| 9 | func_from_cpp(); |
| 10 | return 0; |
| 11 | } |
| 12 |