[ create a new paste ] login | about

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

C++, pasted on May 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
void print_arr(char arr[5][5]) {
	for (int i = 0; i < 5; ++i)
		printf("%s\n", arr[i]);
}

int main(int argc, char ** argv)
{
	char arr[5][5] = {"abc", "def", "ghi", "jkl", "mnop"};

	print_arr(arr);

	cin.get();

    return 0;
}


Create a new paste based on this one


Comments: