Emphatic adjective. A less obscene form of Hell to be used in polite company. Often used merely to subtly stress one’s opinion on a subject.
“Heck of a hot day isn’t it?”
“What the heck are you doing in there?”