[ create a new paste ] login | about

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

C++, pasted on Nov 10:
#include <cstdio>
#include <iostream>

using namespace std;

void printIntArray(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: