CS turns electronic engineer

Hello! I have always wanted to be a cs engineer but due to my low performance in 12th slandered I am not able to pursue it. I have taken admission in a reputed college in Electronic engineering. All I wanted to ask is if after doing B tech in Electronic will I ever be able to be a programmer? Also what kind of a job does electronic engineer get in an IT company? Does doing M tech in CS become more difficult if we have done B tech in Electronic engineering?

I will be grateful to anyone who answers my question as I am in great dilemma and at the starting point of my career.