Amount of items in an array.
#4

pawn Код:
new arr[][] =
    {
        {1, 2, 3, 4},
        {3, 4, 6, 6}
    };
   
    printf("%d %d", sizeof(arr), sizeof(arr[]));
Gave me results as 2 & 4.
Why didn't it work with yours?
Reply


Messages In This Thread
Amount of items in an array. - by Jimmy0wns - 18.06.2015, 08:47
Re: Amount of items in an array. - by Darrenr - 18.06.2015, 10:52
Re: Amount of items in an array. - by Jimmy0wns - 18.06.2015, 11:10
Re: Amount of items in an array. - by RajatPawar - 18.06.2015, 11:43
Re: Amount of items in an array. - by Jimmy0wns - 18.06.2015, 11:45
Re: Amount of items in an array. - by Jimmy0wns - 18.06.2015, 12:06

Forum Jump:


Users browsing this thread: 2 Guest(s)