Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to find the length of an array in cpp

// you can divide the size of an array 
// by the size of each element (in bytes)
int len = sizeof(arr) / sizeof(arr[0]);
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #find #length #array #cpp
ADD COMMENT
Topic
Name
7+8 =