How do we print out the address of a defined variable
e.g. how to correctly do this:
#include <stdio.h>
int main(){
int array[] = { 7, 8, 9 };
printf(" %s ", &array);
}
it'll put nothing and fail with:
.c: In function ‘main’:
l.c:8:12: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int (*)[3]’ [-Wformat=]
8 | printf(" %s ", &array);
Please help it out