Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //a.cpp
- inline int f(int x) { return x; }
- int g(int x) { return f(x); }
- //b.cpp
- #include <iostream>
- inline int f(int x) { return x + 1; }
- extern int g(int);
- int main() {
- std::cout << g(2) << f(2) << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement