Since there is no air resistance, the horizontal component of the ball's velocity remains constant throughout its motion. In this case, the initial horizontal velocity is 40 m/s, and it will remain the same after 3 seconds.
Therefore, the horizontal speed of the ball will be 40 m/s after 3 seconds, assuming there are no external factors affecting its motion.