Try this and let us know if it works.
Then if the array is called "arr"Code:
printf("\nArray size %d",n);
Code:
printf("\nArray last characrer value %c",arr[n-1]);
Printable View
What is that supposed to do and what is "n"?
That assumes that the size is passed in the first place. Just because it's an array of n elements doesn't mean the information exists within the function.
sweet thanks!