Is it okay if I use it like this? Will there be any other issues that I will need to be worried about?Code:#include <stdio.h>
void test(int * total);
int main(void)
{
int total = 0;
void test(&total);
printf("The total is : %d", total);
return 0;
}
void test(int * total)
{
int number;
printf("Enter a number : ");
scanf("%d", &number);
*total = *total + number;
}