More actions
({CREATE}) |
No edit summary |
||
| Line 1: | Line 1: | ||
#include | #include <stdio.h> | ||
int main(){ | int main(){ | ||
char str[10]; | |||
char * p_str = 0; | |||
scanf_s("%s", str); | |||
p_str = &str[4]; | |||
*p_str = '@'; | |||
p_str = &str; | |||
printf("%s", p_str); | |||
return 0; | |||
} | } | ||
Latest revision as of 11:03, 30 May 2017
#include <stdio.h>
int main(){
char str[10];
char * p_str = 0;
scanf_s("%s", str);
p_str = &str[4];
*p_str = '@';
p_str = &str;
printf("%s", p_str);
return 0;
}