Hi,
I'm having a bit of trouble with pointers:
Obviously, the code above does not include any pointers. But it shows the basic form of what I'd like to achieve. After being passed to My_func, the value of originalA should become 7. How do I put pointers into this?Code:void My_func(float A) { float D = 2; float TEMP; TEMP = D + A; A = TEMP; } main() { float originalA = 5; My_func(originalA); printf("%f", originalA); }
Thanks