+ 5
here is an example of program with array #include <iostream> int main(){ int fruits[5]={"apple", "orange","banana","pineapple","guava"}; for(int i=0; i<5; i++){ cout<<fruits [i] <<"/n"; } return 0: } prints apple, orange, pineapple , banana, pineapple, guava.
12th Oct 2017, 2:11 AM
Sandeep Chatterjee