Come faccio a stampare un long come sequenza di 16 bit?

Es. n=0; in stampa dovrei ottenere 000000000000000
e così via...

Grazie a tutti!