A
Anon Email
In the code below, what does this mean?
mine = (short *)0;
--------------
#include <iostream>
int main()
{
typedef short Example;
short *mine;
mine = (short *)0;
if(mine)
{
delete [] mine;
}
mine = new short[10];
for (int i = 0; i < 10; ++i)
mine = 0;
for (int i = 0; i < 10; ++i)
std::cout << mine
<< " short"
<< std::endl;
}
mine = (short *)0;
--------------
#include <iostream>
int main()
{
typedef short Example;
short *mine;
mine = (short *)0;
if(mine)
{
delete [] mine;
}
mine = new short[10];
for (int i = 0; i < 10; ++i)
mine = 0;
for (int i = 0; i < 10; ++i)
std::cout << mine
<< " short"
<< std::endl;
}