+ 2
Why this code shows warning?How can i get rid from this warning?[This code work very well]
WHILE I AM LEARNING POINTERS CONCEPTS IN C. I FOUND THIS CODE IN SOLOLEARN LESSON. https://www.sololearn.com/learn/C/2933/ WHY THIS CODE KEEP ON SHOWING WARNING.HOW CAN I AVOID THIS WARNING? https://code.sololearn.com/ctY0Un1YNfB8/?ref=app
2 Antworten
+ 6
The correct format specifier for pointers is %p. The warning is about that the code uses wrong format specifier and the result might be unexpected.
%x is hexadecimal representation of unsigned int.
+ 2
Thank you CarrieForle for clarifying my doubt.....