C programming qs
Can anyone figure this out?
Got a structure:
string
int
int
I am creating a queue and passing the values for string, int and int to it. Whenever I print the queue I keep getting the same string even though I get the correct values for the 2 ints. What I mean is instead of getting:
x 1 1
y 2 2
z 3 3
I get:
x 1 1
x 2 2
x 3 3
I know its getting the correct values on the string because I am doing a print. And I know the pointer is going to the next line because the 2 ints are changing as they should.