Converting WAV to C - not working...

The question in this case is: do you need the header for what you are going to do?
The tool you were using saves only the raw binary data, and not the header (that is why it is shorter). It also doesn't check if the format you are reading is ok (i.e. bitsize, compression, stereo, samplerate, 2's compliment data etc.).