1.

How To Print An Address?

Answer»

The best WAY is to use "%p" in printf() or fprintf. The “%p” will TELL compiler to use the best type to use, while printing the ADDRESS ACCORDING to the ENVIRONMENT, since the size of a pointer changes from system to system.

The best way is to use "%p" in printf() or fprintf. The “%p” will tell compiler to use the best type to use, while printing the address according to the environment, since the size of a pointer changes from system to system.



Discussion

No Comment Found