Q490
What will be the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) array arr1; arr1.fill(2); for(int i=0;i<5;i++) cout<<arr1[i]; cout<<endl; return 0;
A.
22222
AnswerB.
20000
C.
00002
D.
20002
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board