Here, carbon has 4 valency......
According to the electronic configuration
C-> 1s22s22p2, here there are 2 unpaired elctrons,
but the excitation w1hile bonding (exchange energy)
results in the replacement of e- (with -1/2 spin) from 2s to 2p (+1/2 spin).
this leaves the carbon atom with 4 unpaired elcetrons which gets paired during
hybridisation;
1s22s12p3
Hence it has 4 valency......