The difference between an embedded system and microcontroller are:

S.no Embedded System Microcontroller
1. Embedded system is an electronic system. The microcontroller is the heart of an embedded system, and it controls the operation.
2. Embedded system looks after the whole process. A microcontroller looks after specific tasks only.
3. An embedded system consists of hardware and software components. A microcontroller has CPU, RAM, and ROM which are a part of the embedded system.
BY Best Interview Question ON 23 Mar 2019