troubleshooting Question

POW syntax

Avatar of ExpExchHelp
ExpExchHelpFlag for United States of America asked on
C
7 Comments3 Solutions1211 ViewsLast Modified:
In a previous post, another expert made reference to a tutorial site:
http://www.cplusplus.com/reference/clibrary/cmath/

I've looked at the POW example code.   Using this example, I'm already getting a compile error on the "printf" statement.   Why is this throwing an error?   How do I fix it?

*******
/* pow example */
#include <stdio.h>
#include <math.h>

int main ()
{
  printf ("7 ^ 3 = %lf\n", pow (7,3));
  return 0;
}
*******
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 3 Answers and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros