When I run this code:
It outputs the same address twice. Why?Code:#include <stdio.h> int main() { int x[] = {1,2,3,4,5,6,7,8,9,0}; printf("Address of x : %p\n", &x); printf("Contents of x: %p\n", x); return 0; }
It looks like x is pointing to itself.