Function as condition in for loop – does anyone write like this in C?

I’m re-discovering C after years of using high level languages like C#, Java and I’m messing around with generic-like functions, I’m trying to write something like functors etc. I wrote something like this: #include <stdio.h> static int test(int x){ return (x < 5) ? 1 : 0; } int main() { for (int i =… Read More Function as condition in for loop – does anyone write like this in C?