Video courses for company/skill based Preparation
Purchase mock tests for company/skill building
What is the use of %p in C
What is %p in C Programming ?
%p is a format specifier in C Programming language, that is used to work with pointers while writing a code in C. Using %p with printf() we can print a pointer value in C programming. There are many other format specifiers in C, which you can study about on our Format Specifiers in C page, by clicking on the button below
How to use %p in C Programming ?
%p is used with printf() similarly as other format specifiers are used, %p is particularly used for printing pointer type value. Lets see an example and understand the working of %p format specifier in C programming language