Anonymous functions

mohammed_sherif_199

mohammed sherif

Posted on May 15, 2024

Anonymous functions

All the functions have a Name , such
as main, hello.
But not every function needs a name. If you remove the
return type and the function name, then what you have left
is an _ anonymous function _.

Function myFunction = int multiply(int a, int b)
{return a * b; };

💖 💪 🙅 🚩
mohammed_sherif_199
mohammed sherif

Posted on May 15, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related