calculations with pointers

This is a discussion on calculations with pointers within the C Programming forums, part of the General Programming Boards category; hey all, so im making one that uses pointers to pass the answers of four calculations. im just missing something ...

This is the problem. You are assigning values to random spots in memory, since the four pointers on the left-hand-side are all uninitialized. This entire block of code, as well as the sum, sub, div, and prod pointers, are all unnecessary. Just take it out.