More actions
imported>chohm1223 ({CREATE}) |
imported>chohm1223 No edit summary |
||
| Line 4: | Line 4: | ||
{ | { | ||
char str[10]; | char str[10]; | ||
char *p_str=0; | char * p_str=0; | ||
scanf("%s", str); | scanf("%s", str); | ||
p_str = &str[4]; | p_str = &str[4]; | ||
** p_str = '@'; | |||
p_str = &str; | p_str = &str; | ||
Revision as of 12:04, 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; }