-
What is the output of this program?
#include <iostream>
#include <limits>
using namespace std;
int main ()
{
cout << boolalpha;
cout << numeric_limits<int> :: has_infinity << '\n';
return 0;
}
-
- true
- false
- Compilation Error
- Runtime Error
- None of these
Correct Option: B
In this program, We are checking whether the integer has limit or not by using has_infinity function.