These are 40 pin 0.100"-spaced straight male pin headers. These are commonly used to mate with female 0.100" headers, breadboards, shorting blocks, or IC sockets.
These can be cut down to make shorter headers or ganged togeather end-to-end to make longer ones. They also fit side-by-each to make double-row headers.