fork download
  1.  
  2. #include <stdio.h>
  3.  
  4. void fun(char *a) {
  5. (*a)++;
  6. printf("%c", ++(*a));
  7. (*a)++;
  8. printf("%c", *a++);
  9. }
  10.  
  11. int main() {
  12. char a[100];
  13. a[0] = 'A'; a[1] = 'B';
  14. a[2] = 'C';a[3] = '\0'; // Assuming the string ends at index 3
  15.  
  16. fun(&a[0]);
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
CD