C++ examples for Data Type:Array
Array Index is from 0 to length -1
#include <iostream> using namespace std; int main() {/* w ww.j ava 2 s.co m*/ int a[10]; for(int i = 0; i < 10; i++) { a[i] = i * 10; cout << "a[" << i << "] = " << a[i] << endl; } }