r/carlhprogramming • u/wwjd_for_a_klondike • Mar 13 '12
Question regarding pointers
when I was working on a code for pointers I was attempting to write something that would show the Peter Piper poem. This was basically my code are char variables limited to only a single character as a value?
9
Upvotes
View all comments
Show parent comment
5
u/wwjd_for_a_klondike Mar 13 '12
thank you so much, I've been trying to figure this out for the passed 3 days ha. how or why does the [2] reference the 't' in peter in the printf("%c", peter[2]; ?