#include <iostream>
int main()
{
unsigned short shortVar=5;
unsigned long longVar= 5;
long sVar = -5;
std::cout << "shortVar:\t" << shortVar;
std::cout << "\tAddress of shortVar:\t" << &shortVar << "\n";
std::cout << "longVar:\t" << longVar;
std::cout << "\tAddress of longVar:\t" << &longVar << "\n";
std::cout << "sVar:\t\t" << sVar;
std::cout << "\tAddress of sVar:\t" << &sVar << "\n";
return 0;
}
|