Can you reduce the size of your signature. It looks annoying.
Also regarding your query. Something you cannot do in C++ but in C
long *ptr2 = ptr1;
Also you can try compiling this in C it will but not in C++
int class = 0;
int template = 4;
class += template;
Also have this link as in interview you have been asked probably this question.