Operator sizeof
// Function definition
AdjArray(arr[], pintensity, startindex = 0, count = sizeof arr, size = sizeof arr)
{
...
}PrintArray(arr[],size=sizeof arr)
{
....
}
//usage:
new cells[20]=[1,2,...] //this populates the array by 1,2,3,4,5,....
PrintArray(cells)
....
( 0) 00000001 00000002 00000003 00000004 ................
( 4) 00000005 00000006 00000007 00000008 ................
( 8) 00000009 0000000A 0000000B 0000000C ................
( 12) 0000000D 0000000E 0000000F 00000010 ................
( 16) 00000011 00000012 00000013 00000014 ................Last updated