944,026 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 2858
  • C RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Oct 28th, 2009
0
Re: C program for a power function
Try changing int x to double x and change line 9 to:
  1. double s = x * num;
When you declare power as double, that means the return value must be also be double.
Reputation Points: 100
Solved Threads: 48
Posting Pro in Training
Grn Xtrm is offline Offline
495 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: C language help required (2 Questions here )
Next Thread in C Forum Timeline: pass excel sheet in linux C using libxls





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC