0

How work this code?

int arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; int size = *(&arr + 1) - arr;

17th Oct 2019, 5:40 PM
sagar shirtode
sagar shirtode - avatar
3 Respuestas
+ 4
You shouldn't have written any code in Relevant Tags section. Instead, you should use it to specify which language be involved, and optionally some other words that helps describe the problem. Please follow this tips on how to improve your question's likelihood for getting answers: https://www.sololearn.com/Discuss/333866/?ref=app
17th Oct 2019, 7:32 PM
Ipang
+ 1
https://www.geeksforgeeks.org/how-to-find-size-of-array-in-cc-without-using-sizeof-operator/ https://www.geeksforgeeks.org/whats-difference-between-array-and-array-for-int-array5/
17th Oct 2019, 6:46 PM
MO ELomari
MO ELomari - avatar