There is an ex structure, it has data. It is necessary to copy the field to the structure ex2. The field is a string. Is it possible not to copy the string using strcpy(); , and rewrite the pointer?
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct q{ char pole[200]; }test1; typedef struct q2{ char pole[200]; }test2; int main(void) { test1 ex[1]; test2 ex2[1]; strcpy((*ex).pole, "qwer"); // заносим данные для примера ex2.pole = &ex.pole; // перезапись указателя (?) printf("%s",(*ex2).pole); return 0; }