fork(3) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. typedef char tab24[3];
  6.  
  7. int main()
  8. {
  9. tab24 *tb=(tab24*)malloc(4*sizeof(tab24));
  10. strcpy(tb[0],"ABC");
  11. strcpy(tb[1],"DEF");
  12. strcpy(tb[2],"GHI");
  13. strcpy(tb[3],"JK");
  14. printf("%d \"%s\"\n",sizeof(tab24),tb);
  15. return 0;
  16. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
3 "ABCDEFGHIJK"