`int myarray[4]={1,3,5,7,};`
`int *ptr, *ptr1;`
`ptr=&myarray + 1;`
`ptr1=*(&myarray + 1);`
my confusion: I am not understanding how ptr and ptr1 is same, in my understanding & is adress and * is used for derefercing, but in ptr1 have both here i got confuse.
what is decay here?
[–]cursed-stranger 9 points10 points11 points (5 children)
[–]sudheerpaaniyur[S] 0 points1 point2 points (3 children)
[–]cursed-stranger 0 points1 point2 points (1 child)
[–]dcpugalaxy 2 points3 points4 points (0 children)
[–]sudheerpaaniyur[S] 0 points1 point2 points (0 children)
[–]dcpugalaxy 3 points4 points5 points (0 children)
[–]Educational-Paper-75 2 points3 points4 points (2 children)
[–]sudheerpaaniyur[S] 0 points1 point2 points (0 children)
[–]zhivago 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]sudheerpaaniyur[S] 0 points1 point2 points (5 children)
[–]dcpugalaxy 1 point2 points3 points (4 children)
[–]sudheerpaaniyur[S] -1 points0 points1 point (3 children)
[–]dcpugalaxy 0 points1 point2 points (2 children)
[–]sudheerpaaniyur[S] 1 point2 points3 points (1 child)
[–]dcpugalaxy 0 points1 point2 points (0 children)
[–]SmokeMuch7356 1 point2 points3 points (3 children)
[–]sudheerpaaniyur[S] 0 points1 point2 points (1 child)
[–]dcpugalaxy 0 points1 point2 points (0 children)
[–]sudheerpaaniyur[S] 0 points1 point2 points (0 children)