Hi everybody, can someone please explain what is the difference between line A(10) and line B(11).why am i being able to access value of n without using de-referencing operator in first case?
void fun(void *n)
{
printf("\n n=%d ", n);
}
int main()
{
char nVal = 65;
fun((int*)nVal); //-----A
fun((int*)&nVal); //-----B
return 0;
}
output is
n=65
n=2359119
thanks in advance