Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How does c assign the value of a pointer to another array?
How does c assign the value of a pointer to another array?
Circular assignment or direct strcpy. Because this is a string. ?

take for example

# include & ltstdio.h & gt

int? Master ()

{

int? I = 0;

Charles? a[ 100];

scanf("%s ",a);

Fun (& AMPA);

Return? 0;

}

int? Fun (int? *p)

{

int? I,b,c,d;

Charles? j[ 100];

strcpy(j,p);

//memcpy is also ok.

//memcpy(j,? p,? sizeof(j));

//I think after this? Let j 100 receive the values of the above array? And output how I should write with a pointer!

Return? 0;

}