Sizeof returning incorrect array length [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Sizeof an array in the C programming language? I've been fiddling with C to become better acquainted with it and think I may have stumbled upon a initialization/pointer issue that I'm unsure of how to resolve. The below program is an implementation of ROT13, so it takes an input string, and shifts each letter by 13, resulting in the cipher text. The output of my program displays the correct shift, but it won't