Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 8 Online
OpenStudy (anonymous):

what is wrong with the following line of code: v->size-1+v->myarray=&number;

OpenStudy (anonymous):

Are you sure you want to store the address of number? Also, I think you need to derefernce that pointer. *(v->size-1+v->myarray)=number; Here's the more sensible way of writing that line: v->myarray[v->size - 1] = number; assuming you want to actually use the value of number.

OpenStudy (anonymous):

Maybe you need to reverse it and say... &number = v->size blah blah blah

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!