i just learned them ( somewhat) and i am very confused about the return value i recieve....
this is what i made, if anyone could explain why its NOT giving me 10 , i would greatly appreciate it.
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
void fn( int );
int main ()
{
cout<<" The value of intvar is:"<<fn<<endl;
return 0;
}
void fn( int intvar)
{
int intVar;
int *pintVar;
pintVar = & intVar;
*pintVar = 10;
}
it prints out 00401221
why????