<p>I know that quite a few EE’s work at Microsoft.
However, you can’t get a job there without being a skilled programmer.</p>
<p>So, during your EE studies you should make sure you take some programming classes. I don’t know if these are in the EE department, or just CS courses as electives.</p>
<p>Remember, employers care more about skills than degrees.</p>
<p>…
However, I would not “plan for failure”. If you really are interested in software, you should probably do CS.</p>