fork download
  1. #include <stdio.h>
  2.  
  3. void printArray (const char* a, int size)
  4. {
  5. int i = 0;
  6. for(i = 0; i<size; ++i)
  7. {
  8. printf(" %c ",a[i]);
  9. }
  10. }
  11. int main(void) {
  12. char array[5];
  13. array[0]='a';
  14. array[1]='b';
  15. array[2]='c';
  16. array[3]='d';
  17. array[4]='e';
  18. printArray(array,5);
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
 a  b  c  d  e