Revision: 66326
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 18, 2014 08:16 by rdc009
Initial Code
#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
Initial URL
Initial Description
Initial Title
Arrays :: General
Initial Tags
Initial Language
Other