Check out example codes for "trovare il valore massimo in un array c++ w3". It will help you in understanding the concepts better.

Code Example 1

string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};
cars[0] = "Opel";

  cout << cars[0];

  // Now outputs Opel instead of Volvo

Learn ReactJs, React Native from akashmittal.com