Lets say i have an array that holds structs called computer; Whenever I try to assign an element to the array it uses the "memcpy()" function, however i do not have access to this function or any other libraries. How do I assign an element to this array by reference without using memcpy()?
This would be my code if I had access to memcpy()
struct Computer{
int val;
};
int main(){
int i = 0;
Computer list[10];
Computer *p;
p->val = 5;
list[i] = *p;
}