#include<stdio.h>int main(){ int m[10]; int k; for(k=0;k<10;k++) m[k]=k; for(k=0;k<10;k++) printf("m[%d] = %d \n",k,m[k]); printf("End program\n");}
Standard input is empty
m[0] = 0 m[1] = 1 m[2] = 2 m[3] = 3 m[4] = 4 m[5] = 5 m[6] = 6 m[7] = 7 m[8] = 8 m[9] = 9 End program
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!