I have the following code:
main()
{
 uint8_t readCount;
 readCount=0;
 countinfunc(&readCount);
}
countinfunc(uint8_t *readCount)
{
 uint8_t i;
 i = readCount;
 ....
}
Problem is that when it enters in the function the variable i has a different value then 0 after the assignment.
 
     
     
     
     
     
     
    