fork(2) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main() {
  5. int N = 10;
  6. char **tekst=(char **)malloc(N*sizeof(char*));
  7. for(int i=0;i<N;i++)
  8. {
  9. int x;
  10. scanf("%d",&x);
  11. tekst[i]=(char *)malloc(x*sizeof(char));
  12. }
  13. tekst[0][0]=0;
  14. return 0;
  15. }
Success #stdin #stdout 0s 2424KB
stdin
1
2
3
4
5
6
7
8
9
10
stdout
Standard output is empty