[ create a new paste ] login | about

Link: http://codepad.org/bOPKPoXQ    [ raw code | output | fork ]

C++, pasted on Mar 24:
#include <iostream>
 
 
 
using namespace std;
 
 
 
void show_array(int Arr[10])
{
    int const Size = sizeof (Arr) / sizeof (Arr[0]);
    
    for (int i = 0; i < Size; ++i)
    {
        cout << Arr[i] << endl;
    }
}
 
 
 
int main()
{
    int Array[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    show_array(Array);
    return 0;
}


Output:
1
1


Create a new paste based on this one


Comments: