/ Published in: Other

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <iostream> #include <array> #define ARRAY_SIZE(array) ((sizeof(0) / sizeof(array[0]))) using namespace std; int main(int argc, char *argv[]) { long int nums[13] = {1,9,900000,0,2,3,4,9000000000000,5,6,7,8,00}; cout << ARRAY_SIZE(nums); } #will get the length of the array
Comments
