string texts[] = {"Apple", "Banana", "Orange"}; for( unsigned int a = 0; a < sizeof(texts); a = a + 1 ) { cout << "value of a: " << texts[a] << endl; }