Quote Originally Posted by vaibhav
i have read that we can use both c and c++ typecasting in c++
True. The C++ _cast<> operators can do some things that can't be done with C-style casts.

Quote Originally Posted by vaibhav
but in code
int i;
long int k;
k=(long int)i*i;//Does not work for long int(i)*i c++ style typecast
It might help if you were more specific than "does not work".

Taking a stab at what you mean, you might wish to try;
Code:
k = ((long int)i)*i;
Quote Originally Posted by vaibhav
and in
cout(&(i));//Does not work for cout((&)i) c style typecasting
I have failed to even guess what you might mean in this last case.