fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main()
  4. {
  5. char *pstr = NULL;
  6. int razmer = 0;
  7. scanf("%i", &razmer);
  8. pstr = (char*)calloc(razmer, sizeof(char));
  9. for (int i = 0; i < razmer; i++)
  10. {
  11. scanf("%c", &pstr[i]);
  12. }
  13. for (int i = 0; i < razmer; i++)
  14. {
  15. printf("%c", pstr[i]);
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
Standard output is empty