How do virus scanners work?

Have you ever wondered that what is the method that a virus scanner easily catches the virus and is rarely mistaken?

virus scanner

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Radhika Agarwal

Today, the enemy is everywhere and is complacency so I want to broaden my perspective at very young age so that I do not fear the results of 100 battles