In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Different programming languages before the occurrence of stackoverflow support the maximum number of nesting layers of the call stack, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.
Today, one of my colleagues posted a picture in the WeChat group, which aroused my curiosity: what is the maximum number of nested layers of recursive calls to functions supported by different programming languages?
Java 1.8private static void recur (int I) {System.out.println ("Stack level:" + I); recur (+ + I);}
Test results: 8644
Javascript in Chrome
Chrome version:
Version 70.0.3538.102 (Official Build) (64-bit)
Function a (I) {console.log ("stack level:" + I) a (iTun1);} a (0)
Test results: 11412
JavaScript in nodejs
Nodejs version: v8.11.3
Test results: 11213
Golang
Version:
Test results: 3947556
ABAPdata: lv_temp type int4.form recur using iv type int4. Sy-index = iv. Lv_temp = iv + 1. Perform recur using lv_temp. Endform. start-OF-SELECTION. Perform recur using 0.
It's actually an out-of-memory error.
Test results: 12258206
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.