I still not understand why it say me "Segmentation fault" at line 7 (when I try to access at one character with this command '*s'), can someone help me please?
This is the entire simple program:
#include <stdio.h>
void f(char* s, char c) {
  s++;
  s++;
  *s = c;
}
int main() {
  char* s = "hello!";
  f(s, 'd');
  printf("%s\n", s);
  return 0;
}
Thanks in advance.
