Original Post
Do I HAVE to use a vector? I prefer to use them only when it is necessary. Is there a way to find the length of an array that is passed to a function? I thought I could use something like
while(array) i++;but that is obviously wrong. (It worked with strings so I figured "oh, what the hell?"). When I create an array inside the same function I can find the size using sizeof(array) / sizeof(char) but I already know the size in that situation.