More actions
imported>chohm1223 No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
#include | #include<stdio.h> | ||
int main() | int main() | ||
{ | { | ||
char str[10]; | |||
char * p_str=0; | |||
scanf("%s", str); | |||
p_str = &str[4]; | |||
* p_str = '@'; | |||
p_str = &str; | |||
printf("%s\n", p_str); | |||
return 0; | |||
} | } | ||
Latest revision as of 13:54, 19 May 2017
#include<stdio.h>
int main()
{
char str[10];
char * p_str=0;
scanf("%s", str);
p_str = &str[4];
* p_str = '@';
p_str = &str;
printf("%s\n", p_str);
return 0;
}