Hi I am trying to implement a generic version of bubblesort.
bubblesort(void *p, int lenght)
{...
.....
.....
if(p[i]>p[i+1])//switch
........
.....
The compiler is giving me an error. at the same line as
if(p[i]>p[i+1])
why?
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.