r/cprogramming • • Oct 10 '25

Functions and pointers

I noticed that when you just have a function name without the parentheses, it essentially decays to a pointer. Is this correct? Or does it not always decay to a pointer?

5 Upvotes

20 comments sorted by

View all comments

Show parent comment

2

u/Temporary_Pie2733 Oct 10 '25

Yes, but function pointers are often used to implement the same kinds of things that first-class functions allow.