
What the heck!
Emphasize Surprize
Use 'what the heck!' to stress your surprise in informal situations. 
Soften Discontent
The phrase can express annoyance without being too harsh or offensive. 
Show Polite Alarm
'What the heck!' is less rude than stronger alternatives when reacting to the unexpected. 