I wrote this as part of an assignment and I can't seem to find the bug in it. What is happening is that the third element of the structure (the integer) is coming up 256 short when I display it to the console. If I add the line after the first initialization, treat[0].bar_calories = 290, then the output will be correct (290) otherwise it displays 34.
I don't see anything that would cause that behavior, although you do have undefined behavior here. Are you sure you've compiled against the latest source?