Why is C2H2 not an alkane?
Consider that carbon makes four bonds.
Given two carbon atoms, and only two other atoms, carbon needs to triple bond in order to be stable, such that,
Molecules with carbon-carbon triple bonds are termed alkynes, not alkanes. Alkanes are molecules with only carbon-carbon single bonds.