0

Is it possible to return a function in C? For example, in Python, we can do the following:

def function1(n):
  def function2():
    print(n)
    print("Bar")
  return function2

function2 = function1("Foo")
function2()

What would the C equivalent be?

wibbuffey
  • 118
  • 9

0 Answers0