Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: C++  |  size: 0.17 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <iostream>
  2.  
  3. void f()
  4. {
  5.         int i = 0;
  6.         i++;
  7.         std::cout << "i: " << i << std::endl;
  8. }
  9.  
  10. void f2()
  11. {
  12.         return f();
  13. }
  14.  
  15. int main()
  16. {
  17.         f2();
  18.         return 0;
  19. }