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