I wonder if does:
void *ptr = NULL;
printf("%p\n", ptr);
Will always gives (nil) output?
Does it depend on standard library implementation, or it’s a C99 standard specification?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On my system it yields
(null)so I guess it’s implementation defined. More generally, everything%pprints is implementation-defined: