Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to initialize 2d array with values c++

int main()
{
    int arr[2][5] =
    {
        {1,8,12,20,25},
        {5,9,13,24,26}
    };
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #initialize #array #values
ADD COMMENT
Topic
Name
8+3 =