While you are at it, I would suggest that you turn on compiler warnings:
gcc -Wall -W -pedantic yourprogam.c -o yourprogram -lm
You might see some helpful stuff like
Type: Posts; User: Dave Evans
While you are at it, I would suggest that you turn on compiler warnings:
gcc -Wall -W -pedantic yourprogam.c -o yourprogram -lm
You might see some helpful stuff like