What are the impacts of sudden PC shutdown?

Many people have problem with their PC shutting down suddenly. Some of the PCs restart themselves because of virus and get BSoD while some PCs restart because of power breakout. What are the major impacts of sudden shut down of PC? Will this devote to crashing of hard drive? What are the steps to be taken to stop this from happening?
