Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ProgramErrorFree
- {
- static void Main()
- {
- while(true)
- {
- Console.WriteLine(Guid.NewGuid());
- }
- }
- }
- class ProgramStackOverFlow
- {
- static void Recursive(int value)
- {
- // Write call number and call this method again.
- // ... The stack will eventually overflow.
- Console.WriteLine(value);
- Recursive(++value);
- }
- static void Main()
- {
- // Begin the infinite recursion.
- Recursive(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement