I'm working on the issue to understand pointers and addresses in c programming.
Unfortunately I don't see the problem here. For a c programmer my question should be easy to response
I can build/compile the file. But the result is: 3265920 for every positve integer I want to facultate ..
// the program calculates faculty
printf("Enter a positive integer which you want to facultate\n");
pn = &n;
printf("result: %d", n);
void factorial(int *px)
tmp = *px;
if( *px == 0)
tmp = 1;
tmp = tmp * k;
*px = tmp;
thx for helping me!