L Lò Ngọc New member Sep 21, 2021 #1 What will be the output of the following C++ code? Code: #include <iostream> #include <limits> using namespace std; int main () { cout << boolalpha; cout << numeric_limits<int> :: has_infinity << '\n'; return 0; } A. 53234 B. false C. true D. 32564
What will be the output of the following C++ code? Code: #include <iostream> #include <limits> using namespace std; int main () { cout << boolalpha; cout << numeric_limits<int> :: has_infinity << '\n'; return 0; } A. 53234 B. false C. true D. 32564
Nguyễn Hồng Yến New member Sep 21, 2021 #2 Answer: b Explanation: In this program, We are checking whether the integer has limit or not by using has_infinity function. Output: Code: $ g++ num.cpp $ a.out false Upvote 0 Downvote
Answer: b Explanation: In this program, We are checking whether the integer has limit or not by using has_infinity function. Output: Code: $ g++ num.cpp $ a.out false