✅ Strange output of my code

        var query = Enumerable.Range(1, 1000)
            .Where(x => x % 2 == 0)
            .Aggregate((x, y) => x * y);

        Console.WriteLine(query);

why does this output 0? is it due to overflow, and if it is, why is an exception not thrown?
Was this page helpful?