U E D R , A S I H C RSS

새싹교실/2017/내무반/조현민/포인터실습

Difference between r1.1 and the current

@@ -1,17 +1,19 @@
{{{
#include<stdio.h>

int main()
{
char str[10];
char *p_str=0;
char * p_str=0;

scanf("%s", str);

p_str = &str[4];
*p_str = '@';
* p_str = '@';

p_str = &str;

printf("%s\n", p_str);
return 0;
}
}}}



#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;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:30:07
Processing time 0.0196 sec