   The  table elements number
  I was wondering if there is a way to know the number of elements of a table...   
  If you have a arraychar array[32];You can get the size like thissizeof(array)However, if you make a pointer to the arraychar* parray = array;and do thissizeof(parray)you will get the size of the pointer, not the array.If you need to send an array as a function argument, the common way to do it isto send the size of the array as well:void my_func(char *array, int array_size)If you have a array of ints, int array[32], you would have to get the size like this:sizeof(array) / sizeof(int);This is cumbersome at best. You should probably use a C++ vector instead:vector<int> vec;add a integer to the vectorvec.push_back(3);and get the number of elements like thisvec.size();To send the vector as an argument to a function, the prefered way to do it isWith write access:void my_func(vector<int>& vec)Without write access:void my_func(const vector<int>& vec);  Width x height.   ;  how can access a particular value of a vector ?   