*(int*)x

Can anyone tell what does (int)x means. I will give you the context. I am trying to understand a program where I encountered this
int compare(const void x,const void *y)
{
if(
(int)x<(int*)y)
return -1;
return 1;
}
I am not able to understand what does it means. I am beginner in programming. Please help

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories