Hi,
I have just realized that I was passing a pointer to pointer to memset function to initialize a character array but everything still seems to be working. Here is the "problematic" code:
char myArray[25];
memset(&myArray, 0, 25);
Notice the & operator in front of myArray in memset call. It should not work but it does????
The code should be without the & operator in front of myArray variable:
char myArray[25];
memset(myArray, 0, 25);
Does anybody know why the initial code is working with the unnecessary & operator?
Thank you in advance.
Mark