# to the nth power

Jonathan W Miner jwm775 at uunet!unhd
Sat Nov 10 04:42:17 AEST 1990


In article <90305.005050CJH101 at psuvm.psu.edu> CJH101 at psuvm.psu.edu (Carl J. Hixon) writes:
>I appologize for bothering you computer wizards with such an elementary
>question but, I'm floundering.  Why am I unable to find an opperator which
>raises a number to a power. (The fortran equivalent of x**n)  Is there such
>an opporator or do I need to write my own function?  It seems like a terrible
>oversite to me that such a common operation was overlooked.

There is a standard C function pow(x,y) which returns x raised to the y.
:x

-- 
-----------------------------------------------------------------
Jonathan Miner        | I don't speak for UNH, and UNH does not 
jwm775 at unhd.unh.edu   | speak for me! 
(603)868-3416         | Rather be downhill skiing... or hacking... 



More information about the Comp.lang.c mailing list