What is the meaning of `printf(“%p”)` without arguments

后端 未结 4 705
半阙折子戏
半阙折子戏 2021-01-13 05:16

I of course know it used to output pointer with arguments.

I read book Writing Secure Code by Michael Howard and David LeBlanc.

One program in book

4条回答
  •  庸人自扰
    2021-01-13 05:53

    It means it will print output in a specific format. In the case of parameter "%p" it will be printed in the memory address format for your system (8 digits, hexadecimal).

提交回复
热议问题