ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What will be the output of the following C++ code
#include <iostream>
#include <array>
using namespace std;
int main(int argc, char const *argv[])
{
array<int,arr arr1.fill(5);
cout<<get<5>(arr1);
return}
Correct Answer: D — 5
fill() function is used to fill an array class with the given single value.