This is a branch-versus-institute question, and students who know both say that IIT Kanpur and IIT Roorkee are strong. A student who knows IIT Roorkee CSE says it is pretty good, and expects Kanpur's CSE to be stronger because students with better JEE ranks get in there, but adds that internships and placements are sufficient at both for anyone who makes the most of them. He also notes that Roorkee's CS faculty is younger and smaller in number.
Remember that you are comparing electrical at Kanpur with computer science at Roorkee, which are different branches. Computer science is the most direct path to software jobs and the one in highest demand, while electrical at Kanpur has a strong theoretical base in circuits, power and signals and keeps both hardware and software options open, with a strong research culture.
If you are sure you want to code for a living, CSE at Roorkee gives you the direct route. If you are curious about electronics and would also like to explore computing through electives, Kanpur's electrical programme with its strong peer group is a good fit. Look at the course structures, electives and the last few placement reports, and speak to seniors in both departments.
If you want a safe software path, CSE at IIT Roorkee is a strong choice, and students say its placements and internship opportunities are good. For CS in general, the reasoning is that candidates with better JEE ranks tend to choose IIT Kanpur, so Kanpur is expected to be slightly ahead on peer group and faculty depth, while Roorkee's CS faculty is described as relatively younger and smaller.
Electrical at IIT Kanpur is a respected branch at a college with a very strong national brand. It is a circuital branch, so it keeps core electronics, power and control roles open, and many EE students move into software with electives and self-study. Kanpur's research culture is also a plus if you are considering higher studies.
The deciding factor should be what you want to do. If your goal is software, CSE at Roorkee gives you a direct route with less need to catch up on your own. If you are undecided, enjoy electronics and physics, or want a master's or a PhD later, Kanpur EE gives you more options and a stronger name. Compare the latest placement reports for each department, ask seniors about workload and opportunities, and pick the one you will be motivated to study for four years.
The first thing to separate is the college from the branch. A student who knows Roorkee says its CSE is pretty good and that he expects Kanpur's CSE to be better, mainly because students with better JEE ranks go there. He feels both have enough internship and placement opportunities for anyone willing to make the most of them, and mentions that Roorkee's CS faculty is younger and smaller in number.
In your case, though, you are comparing electrical engineering at one place against computer science at the other:
Students often say that CSE offers the clearest edge, but a good electrical programme at a top institute is also respected.
If you know you want to code and your interest in electronics is mild, CSE at Roorkee is a sensible pick. If you are curious about hardware, controls or research and want the stronger academic environment of Kanpur, electrical is a very good option, as long as you add programming skills. Look at both departments' recent placement reports and elective structures, and talk to seniors before you finalise.
Both EE at IIT Kanpur and CSE at IIT Roorkee are well-recognized academic institutions in India. However, the choice between EE at IIT Kanpur and CSE at IIT Roorkee completely depends on your career goals and preferences.
It depends on your interest but to reach a decision let me help you with some points:-