Output given for example is wrong,
June 10, 2009 at 2:18 PM
Output should be The value of 0=10 The value of 1=20 The value of 2=30 The value of 3=40 The value of 4=50 Or we can change the program at following line printf("The value of array2[%d]=%d\n", j, array2[j]);