Nested functions (functions defined inside other functions) are a GCC extension, not standard C. When compiled with GCC, this code works correctly and prints 50. Standard C compilers would reject this, but the question assumes GCC compilation based on the correct answer being 50.