Discussion :: C++ - MCQs
-
What is the output of this program?
#include < iostream >
using namespace std;
void mani()
void mani()
{
cout << "hai";
}
int main()
{
main();
return 0;
}
Answer : Option C
Explanation :
We have to use the semicolon to declare the function in line 3. If we did means, the program will execute.
Be The First To Comment