making the value of a variable to its 10 times

#include <stdio.h>

void change_val(int *x);
int main(){

int a=10;
printf("The value of a before change fucntions is:%d\n",a);

change_val(&a);

printf("The value of a before change fucntions is:%d\n",a);

 return 0;
}


void change_val(int *x)
{
    *x=(*x)*10;
}

Comments