about the length of an array | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

about the length of an array

Please help~ what is the code for finding the length of an array? e.g. int arr[]={1,2,3,4} how to output 4 for showing the length/number of elements in array arr

27th Sep 2019, 7:27 AM
汝風留名
汝風留名 - avatar
8 Answers
+ 1
~ swim ~ is there any direct coding to find the length🤔
27th Sep 2019, 7:38 AM
汝風留名
汝風留名 - avatar
+ 1
Thx~
27th Sep 2019, 7:43 AM
汝風留名
汝風留名 - avatar
+ 1
Thx a lot~
27th Sep 2019, 8:25 AM
汝風留名
汝風留名 - avatar
0
~ swim ~ oh🤔will it be taught in sololearn?cuz i havnt finished all the chapters of C++ in sololearn yet so i dont know if it will be taught in the remining chapters
27th Sep 2019, 8:04 AM
汝風留名
汝風留名 - avatar
0
Could you suggest me some websites or apps for learning extended C++ materials ?
27th Sep 2019, 8:22 AM
汝風留名
汝風留名 - avatar
27th Sep 2019, 9:48 PM
Manoah
Manoah - avatar
0
Manoah Thx~
28th Sep 2019, 2:42 AM
汝風留名
汝風留名 - avatar
0
Manoah I previously learnt in sololearn that "&number" can show the address of the variable "number". So what does" &number + 1"mean?🤔 And is *(&number +1) a pointer?🤔how this minus variable "number"can output 4? *(&numbers + 1) - numbers
28th Sep 2019, 2:49 AM
汝風留名
汝風留名 - avatar