All pastes #1690119 Raw Edit

Untitled

public c v1 · immutable
#1690119 ·published 2009-11-27 21:24 UTC
rendered paste body
#include <stdio.h>#include <string.h>struct struk {	char s[10], *p;};void fv(struct struk s){	printf("%s|%s\n", s.s, s.p);	s.s[3] = '#';	s.p[3] = '#';	printf("%s|%s\n", s.s, s.p);}int main(){	char str[] = "hallo";	struct struk s1;	strcpy(s1.s, "hello");	s1.p = str;	fv(s1);	printf("%s|%s\n", s1.s, s1.p);	return 0;}