I wrote a factorial function and it is working perfect :)
But only for the numbers until 65. I want it to be able to calculate even bigger numbers (like 100 or 1000). I maximized the size of value that the function is returning... Any ideas? Maybe storing it in array (tho I got no idea how :/ )
What two pointers pointing at each other can do?
Can I make a pointer pointing at itself (if yes, what can it do?)?
And keywords private, explicit, friend (I understand classes).
your factorial function does not have a default return value. One of your return statements cannot depend on a condition, so choose one of them and use that as the default return value.
1 2 3 4
int w = 2;
int *ptr1 = &w//2
int *ptr2 = ptr1;//2
ptr1 = ptr2;//2