[ create a new paste ] login | about

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

C++, pasted on Apr 29:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <string>
#include <iostream>

using namespace std;

void read_dictionary(string ar_dictionary[25], int& dictionary_size)
{
	cout << sizeof(ar_dictionary) << endl;	
	cout << sizeof(void*) << endl;	
}

int main()
{
	string test[25];
	int dictionary_size = 25;
	read_dictionary(test, dictionary_size);
	
	return 0;
}


Output:
1
2
4
4


Create a new paste based on this one


Comments: