L Linh Chi New member Sep 21, 2021 #1 What will be the output of the following C++ code? Code: #include <iostream> #include <algorithm> using namespace std; int main () { cout << min(2, 1) << ' '; cout << min('m','m') << '\n'; return 0; } A. Error B. Runtime error C. 1 m D. 5 m
What will be the output of the following C++ code? Code: #include <iostream> #include <algorithm> using namespace std; int main () { cout << min(2, 1) << ' '; cout << min('m','m') << '\n'; return 0; } A. Error B. Runtime error C. 1 m D. 5 m
N Nhật Hương Member Sep 21, 2021 #2 Answer: c Explanation: In this program, We are finding the minimum value by using min method. Output: Code: $ g++ max3.cpp $ a.out 1 m Upvote 0 Downvote
Answer: c Explanation: In this program, We are finding the minimum value by using min method. Output: Code: $ g++ max3.cpp $ a.out 1 m