fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main(void) {
  4. // your code goes here
  5. char a[]="sda";
  6. char b[] = "sd";
  7. int offset=1;
  8.  
  9. *(a+strlen(b)) = 'a'+offset;
  10.  
  11. printf("%s\n", a);
  12.  
  13.  
  14. }
  15.  
Success #stdin #stdout 0.01s 5304KB
stdin
123
stdout
sdb