I am confused why you can define a function like
int func_useless(int) { return 2; }
that takes as input an unnamed int, but does nothing with it, unlike
int func_useful(int a) { return a; }
For instance, you could call
int x = func_useless(3); // x is 2
where passing an int to func_useless
was required but results in nothing.
When would passing something that cannot be used ever be useful? Why is this a feature of the language?