+1  A: 

Try:

w = (char*) &z;
csl
thanks so much!
goe
But be aware that this code is not portable.
starblue
A: 

Don't forget that generally casting pointers in C is a bad idea. Sure, there are some times when it is the right thing to do, but we can't see exactly what you're doing here. In most cases there is a better, more portable way to do whatever it is which you are aiming at here.

Tim
A: 
Shivangi
This should be a question....
st0le