you will see 25 and 4 output from this. strlen(array) will give you the lenght of the string contained within the array but not the full size of the array. I dont know if that is what you where looking for.
Thanks for the reply I wanted the size of the array something which returns the length of the array. Perhaps
I am barking up the wrong tree so i'll tell you what i am trying to acheive. I need to be able to store some records in memory but give the user the ability to add/remove records etc. How i am doing this is by creating a copy of a an array every time a new record is added/deleted. I am trying to keep it simple.
I dont know how to make a link list in c++ only java and with c++ im assuming that the link list would use pointers which i dont know much about. Also the reason i wanted to keep it simple was to teach my younger brother about c++ as hes currently trying to learn it (not that i know it but i can explain some of the concepts).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.