Allocating memory for different sizes. But sizeof pointers are same. Whats the difference?
short * v = (short*)malloc(sizeof(short));
std::cout <<"....adress.."<< sizeof(&v) <<endl;
v=(short*)malloc(sizeof(short)*999);
std::cout <<"....adress.."<< sizeof(&v) <<endl;
result is 8 for both. I expected 999*8 , how can I allocate 999 * 8 in memory?