C
chunpulee
hi
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *p = "aa";
p[1] = 'b'; /* Segmentation fault */
printf("%s\n", p);
return 0;
}
my os is linux fc8
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *p = "aa";
p[1] = 'b'; /* Segmentation fault */
printf("%s\n", p);
return 0;
}
my os is linux fc8