fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. char* c[3];
  6. int i;
  7.  
  8. c[0] = "ABC";
  9. c[1] = "BC";
  10. c[2] = "C";
  11. for (i = 0; i < 3; i++) {
  12. printf("c[%d] = \"%s\"\n", i, c[i]);
  13. }
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
c[0] = "ABC"
c[1] = "BC"
c[2] = "C"