There is a function like this. I took this error expected identifier or '(' before 'void' How to solve this problem? Thank you.
struct node * void ekleSirali(struct node * r,int x){
     if(r==NULL){
        r=(struct node *)malloc(sizeof(struct node));
        r->next=NULL;
        r->x =x;     
        return r;  
     }
I don't know whether I should write struct.
 
    