For example:
void main(){
foo1();
}
fooTarget();
foo1(foo2(););
foo2(foo3(););
foo3(foo4(););
foo4(foo5(););
foo5(
foo6();
fooTarget(); //Identifier not found
);
foo6(
fooTarget(); //It Works!
);
what is it?
if I paste code from fooTarget() to foo5() it works too
A reduced testcase from actual code:
#include <cstring>
int main() {
char word[] = "hey";
int wordSize = getWordLenght(word); // error: getWordLenght not declared
}
int getWordLenght(char *word){
return strlen(word);
}
In the code you posted in the comments you’re using a function that hasn’t been declared yet. It’s declared later, but C++ doesn’t look at later declarations to resolve functions.
Also, the ‘th’ digraph is spelled ‘th’, not ‘ht’