I knew somebody was going to mention that. I assumed that he had a C routine that calculated the integral. From this routine he would fetch the return value. Since this is a C++ forum, he'd most likely output it using std::cout, considering his C code doesn't seem to be wrong.