What you pasted compiles fine, except you have an extra closing brace at the end, which needs to be removed.
sean_mackrory, when you use an array in that context, it decays to a pointer, the address of the start of the array.
What you pasted compiles fine, except you have an extra closing brace at the end, which needs to be removed.
sean_mackrory, when you use an array in that context, it decays to a pointer, the address of the start of the array.
hmm never mind, it was a strange error it was a problem with one of the loops i had in binary search i didn't close it till the end of the program.