Home » C++ Programming » Functions

Which of the following statement is correct about the program given below? #include<iostream.h> class CuriousTab { public: void CuriousTab(int x = 15) { x = x/2; if(x > 0) CuriousTab(); else cout<< x % 2; } }; int main() { CuriousTab objIB; objIB.CuriousTab(); return 0; }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!