I want to copy all the element of small structure array to larger structure array without copying individual element from the structure my code is below
This question is asked here copy smaller array into larger array before but i couldn't find appropriate reply.please help me
struct st
{
int i;
char ch[10];
};
int main()
{
struct st var[2]={1,"hello",2"bye"};
struct st largevar[3];
strcpy(largevar,var);// this is bad i guss but is there any way to copy without individual element access?
}
memcpy?