c++ print variable address in dec code example Example: c++ print variable address printf("%p\n",(void*)&a);