Untitled
public c v1 · immutable#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;}