Home » C++ Programming » Functions

Which of the following statement is correct about the program given below? #include<iostream.h> const double CuriousTabConstant(const int, const int = 0); int main() { const int c = 2 ; cout<< CuriousTabConstant(c, 10)<< " "; cout<< CuriousTabConstant(c, 20)<< endl; return 0; } const double CuriousTabConstant(const int x, const int y) { return( (y + (y * x) * x % y) * 0.2); }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!