if(first == second)
{
cout << "The pointers are the same";
}
else
{
cout << "The pointers are different";
}
will the above code give me the correct result everytime? Will the equality always be true whenever first and second point to exactly the same short datatype, as opposed to two different short datatypes which just happen to equal each other?