What is the output of the following code segment? string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"}; cout<<cars[3]; cout<<cars[2];

What is the output of the following code segment?

string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};
    cout<<cars[3];
    cout<<cars[2];
  1. a) Mazda, Ford
  2. b) Ford BMW
  3. c) MazdaFord
  4. d) Mazda Ford

From the BUET MSC (ICT) July 2021 – MCQ exam, question 3 of 57.

More from this paper