Basics of Pointers
#include<stdio.h> main() { int a[]={2,4,6,8,10,12,14,16,18,20}; int b=7; printf("%d\n",*&b); // Prints value at the address of b ie '7' printf("%u\n",&a); // Prints address of a[0]. ie &a points to ... ; // Prints '2' printf("%u\n",*&a); // Why it does not print '2' (ie value at the address of a). }
#include<stdio.h main() { int a[]={2,4,6,8,10,12,14,16,18,20}; int b=7; printf("%d\n",*&b); // Prints value at the address of b ie '7' printf("%u\n",&a); // Prints add...