### Question 14.7

Why doesn't C have an exponentiation operator?

Because few processors have an exponentiation instruction. C has a `pow` function, declared in `<math.h>`, although explicit multiplication is often better for small positive integral exponents.

References: ANSI Sec. 4.5.5.1
ISO Sec. 7.5.5.1
H&S Sec. 17.6 p. 393

Read sequentially: prev next up top

This page by Steve Summit // Copyright 1995 // mail feedback