As i want to find array size dynamically in function, i used sizeof operator. But i got some unexpected result.
here is one demo program to show you, what i want to do.
you are getting the size of the pointer to the array. If you want the size of the array you have to multiply the number of elements by the size of each element.