fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int top=0;
  4. int fun1()
  5. {
  6. char a[]= {'a','b','c','(','d'};
  7. return a[top++];
  8. }
  9. int main()
  10. {
  11. char b[10];
  12. char ch2;
  13. int i = 0;
  14. while (ch2 = fun1() != '(')
  15. {
  16. b[i++] = ch2;
  17. }
  18. printf("%s",b);
  19. return 0;
  20. }
Success #stdin #stdout 0s 5428KB
stdin
Standard input is empty
stdout
�
��