Question: is pi defined in c?
Answer: Standard C++ doesn't have a constant for PI. Many C++ compilers define M_PI in cmath (or in math. h for C) as a non-standard extension.