Hi Kumar,
I guess, by 'restart' you mean 'power off and power on'. There will be a reset pin(or master clear on some MCUs) which can be strobed to reset the microcontroller core, program counter, registers & its peripherals. Disconnecting the VCC to restart an MCU is not preferred.