Joke Collection Website - Cold jokes - All called functions are defined before being called. What's wrong with this statement?
All called functions are defined before being called. What's wrong with this statement?
This sentence is naturally wrong, and the two upstairs are right. I repeat: when calling a function, you only need to know its declaration, that is, the return type of the function, the number of parameters and the type of each parameter, but you don't need to know the function body of the function, that is, you don't need to know the definition of the function. There are two examples to explain why we should do this: 1, recursive call, that is, a function may need to call itself, and the definition of the function must not be completed when it is called; 2. Using function pointer or callback mechanism, we know nothing about the definition of the actual incoming function when calling.
- Previous article:The joke of Big Wolf and Kotaro.
- Next article:There is an episode in a family with children.
- Related articles
- What should I do if I take the postgraduate entrance examination?
- What is the real military camp life like (starting with the recruit company)
- I want to change myself so that those who hate me will no longer hate me.
- New story: Wu Dalang and Ximen Qing
- Yoga sentences suitable for making friends.
- Chinese cabbage has become a luxury.
- Begging for a hilarious joke
- Ask for classic funny jokes and the funniest ones.
- Can anyone send me an animation storyboard script with legends?
- Zhang Fei's story is urgent.