I recently started programming with C and see code as shown below. I wonder, why does it have *
at the start of the function?
int *inc(record *head, int key){
record *tmp = head;
while(tmp != NULL){
if(tmp->key == key) {
tmp->value = tmp->value + 1;
}
tmp = tmp->next;
}
return 0;
}