Well you need to compile with
gcc prog.c -lm
to link with the math library.
The reason it works with a constant is because the compiler can see what you're doing, and optimise out an actual...
Type: Posts; User: Salem
Well you need to compile with
gcc prog.c -lm
to link with the math library.
The reason it works with a constant is because the compiler can see what you're doing, and optimise out an actual...
Post your error messages.
Also, where do you assign the result of calling pow() ?