fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. int rank[5] = {10,20,30,13,15};
  6. int i;
  7. printf("\nThe elements of array are :");
  8. for(i=0; i<5; i++)
  9. {
  10. printf("%d \t", rank[i]);
  11. }
  12. return 0;
  13. }
  14.  
  15.  
  16.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
The elements of array are :10 	20 	30 	13 	15