I'm using gcc 7.5 with linux mint 19.1 64bit. The code is from Pointers in C, 3rd edition by Y Kanethar. Nube needs help. Thanks.
Code:#include<stdio.h> int main() { int i = 3; printf("\nAddress of i = %u", &i); printf("\nValue of i = %u\n", i); return 0; } /* output: $ gcc -o prog1 prog1.c prog1.c: In function ‘main’: prog1.c:8:29: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int *’ [-Wformat=] printf("\nAddress of i = %lu", &i); ~~^ ~~ %ls