What will be printed out as a result of the following code's execution?

#include <iostream>

static const char s[][10] = {  
  "foo",
  "bar",  
};

void test(const char s[][10]) {  
  using std::cout;  
  for (int i = 0; i < 2; i++) {
    cout << s[i];
  }
}

int main() {
  test(s);  
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes