Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. class ProgramErrorFree
  2. {
  3. static void Main()
  4. {
  5. while(true)
  6. {
  7. Console.WriteLine(Guid.NewGuid());
  8. }
  9. }
  10. }
  11.  
  12. class ProgramStackOverFlow
  13. {
  14. static void Recursive(int value)
  15. {
  16. // Write call number and call this method again.
  17. // ... The stack will eventually overflow.
  18. Console.WriteLine(value);
  19. Recursive(++value);
  20. }
  21.  
  22. static void Main()
  23. {
  24. // Begin the infinite recursion.
  25. Recursive(0);
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement