I have a struct defined in my program.
struct A{ int arr[10]; } Lets say I have a pointer to it. A * a = new A;
I can zero it in two ways:
memset(&a->arr,0,sizeof(A)); memset(a->arr,0,sizeof(A)); both work and look the same!
which one is more correct?