C function declaration within another function
问题 can anyone explain these lines to me: int xyz( void ) { extern void abc( void ); } a function declaration within a function definition? or am I missunderstanding something? 回答1: Yes, your guess is correct. It's declaring the existence of the function abc() , so it may be referenced within xyz() . Note that the extern is unnecessary, as functions are extern by default. 回答2: The "extern" declaration in C is to indicate the existence of, and the type of, a global variable or function. An extern