[ create a new paste ] login | about

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

C++, pasted on Nov 10:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
using namespace std;

void printIntArray(const int array[], int arraySize)
{
	for (int i = 0; i < arraySize; i++)
	{
		cout << array[i] << endl;
	}
}

int main()
{
	int myIntArr[] = {100, 200, 300};
	int myArrSize = 3;

	printIntArray(myIntArr, myArrSize);

	return 0;
}


Output:
1
2
3
100
200
300


Create a new paste based on this one


Comments: