fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void) {
  5. char buf[10] = "Hallo\n";
  6.  
  7. char *ptr_base;
  8. char *ptr_find;
  9.  
  10. ptr_base = buf;
  11. ptr_find = strchr(buf, '\n');
  12.  
  13. printf("ptr_base = 0x%08X\n", ptr_base);
  14. printf("ptr_find = 0x%08X\n", ptr_find);
  15.  
  16. // your code goes here
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 4508KB
stdin
Standard input is empty
stdout
ptr_base = 0xE95532C0
ptr_find = 0xE95532C5