12345678
int *j=new int; *j=i; my_Func (void *)j);// This is how i pass the argument to the func. void* my_Func(void *arg) int id=*((int)*arg);