fork(4) download
  1. #include<stdio.h>
  2. int main(){
  3. int i = 0;
  4. static char * name[] = {
  5. [3] = "bar"
  6. };
  7. for (i = 0; i < 4; i++ ){
  8. printf(" name[%d] = %s\n", i, name[i]);
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
 name[0] = (null)
 name[1] = (null)
 name[2] = (null)
 name[3] = bar