Stable form of C may be represented by the formula :
The element C requires 1 electron to complete its octet so it will share the outer electrons will another C atom.
Thus, the compound formed after the sharing of electrons will be C2.