Vidyalelo
C++ Programming · Q202

C++ miscellaneous

Programming · C++ Programming · question 202

Q202

What will be the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) array arr = 1,2,3,4,5; cout<<"size:"<<arr.size()<<endl; cout<<"maxsize:"<<arr.max_size()<<endl; return 0;

A.
size:10
maxsize:10
Answer
B.
size:5
maxsize:10
C.
size:5
maxsize:5
D.
size:10
maxsize:5

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board