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. printf("%c",b[0]);
  20. printf("%d",b[1]);
  21. printf("%d",b[2]);
  22. printf("hello\n");
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
11hello