After compiling/linking some .c .cpp and .h files, there are a couple of extra .h~ files show up. They seem to have the exact content of the original .h files, when I peek at them using cat. BTW, the OS is ubuntu
The are backup files produced by text editors, notably emacs and gedit, among others. See How do I control how emacs makes backup files? for tips on controlling that.