Thank you. I was trying to total the whole array.

It now works. I changed:
Code:
for(p = 0; p<a+n; p++){
//to
Code:
for(p = a; p<a+n; p++){
// I was getting tired. I can't believe I missed that.

regarding:
Code:
int num =(sizeof(b)/sizeof(b[0]));
//vs
Code:
int num =(sizeof(b)/sizeof(b[0][0]));
// to be honest, I wasn't sure. I was going to change it once I got past the issue I created with the null pointer.

I know I'm not supposed to randomly try stuff to much. I'm trying to understand more and do less dart throwing. Telling me about the null pointer mistake is what did it.

On behalf of all the people trying to learn. Thank you for responding.

Warm Regards.