The thickest part of the skull is the forehead.  A head shot, even from a sniper rifle, may not penetrate.  If you need a head shot because the threat has body armor or cover, make sure it counts.

 

Image from medicinenet.com

 

A gunshot wound to the head with a rifle or handgun will not produce an easily predictable outcome.  The skull is a sealed container that protects the brain. It is designed to block blunt trauma and the curved spherical structure is strong and handles shock very well.  There is very little room for movement.  If the brain swells inside the skull, the pressure can build and cause extensive damage. 
Penetrating trauma (where the bullet gets inside the skull) leaves a permanent cavity (bullet track) may be large, but the damage from the temporary cavity caused by hydrostatic shock can be much worse. With no room to move, the shock waves can do massive damage.
For some lucky people, the bullet may not enter the skull.  Even if it does, the bullet may pass through non-critical parts of the  brain and survival is possible.

Click here to watch an ISIS propaganda video of one of life’s lottery winners.

https://youtu.be/qHFzjRKz3pU

 

An  ISIS sniper gets a pretty good head shot with an SVD sniper rifle. For some reason, maybe cinematic effect, the sniper chose to shoot 7.62x54R Tracer.  In the screenshot below and the video, you can actually watch the round bounce off the skull and fly away.

His target doubles over for a second and the sniper takes another shot which goes high. Our target then recovers his wits and gets off the X and out of sight.

Conventional wisdom and Hollywood would have use believe that a head shot with a sniper rifle is game ending. This video shows there is a lot of biology resisting that head shot.