26 Actions

Factorial does not work for all valuesthanks for the answer I will study a bit more on my own and see if I will change anything on my code.Since it is technically right though I don't think I will get penalised for not being able to compute all values

Factorial does not work for all valuesThank you all I just realised I had forgot to calculate the factorial of zero in the factorial function.I didn t even care about looking at the function because I copy pasted from an old exercise which I considered until now correct

Reverse the elements of a list using pointers@MihaiTodor I mean I have to use pointers in order to reverse the list.I have thought of a solution to reverse it but I have to use arrays and I am not allowed to do that.So thats why I am asking for an example on how to do it so I can go on with this exercise. Thanks everyone else for your help I will study the answers you gave me and see what I can make out of it.