Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. //a.cpp
  2. inline int f(int x) { return x; }
  3. int g(int x) { return f(x); }
  4.  
  5. //b.cpp
  6. #include <iostream>
  7. inline int f(int x) { return x + 1; }
  8. extern int g(int);
  9. int main() {
  10. std::cout << g(2) << f(2) << std::endl;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement