Can anyone help me with this code? it is not working, I can not find the error.
#include <stdio.h>
int chamar(int *n){
printf("Digite o valor de n:");
scanf("%d",&n);
printf("%d",n);
return 0;
}
int main(void){
int n;
chamar(n);
printf("\n%d\n",n);
}