Pointers- A beauty of C

Pointers is a mechanism through which  u have the power to access memory address. This is the only specific beauty of C that make it stand different from other languages

Published by Expert_Talk

I like sharing article and discussion on emerging technologies. Love to share my knowledge on various latest trends and technologies.

3 thoughts on “Pointers- A beauty of C

    1. Declaring array of reference is not allowed.
      You need to understand the objective of declaring an array of reference.
      Referencing is a kind of generating an Alias that refer to the same memory area with two different names.
      Array of references may seems you are interested to refer a same memory area with more than two names which is not required in any practical applications. Reference variable does not occupy a separate memory address but it shares alias memory location.
      Consider a situation when you make three alias for same memory area without using an array
      ex:
      int a,b;
      int &c=a;
      int &c=b; that is you are trying to refer same memory with 3 different names which is not permissible.
      Since this is not allowed then also it does not makes sense to declare like
      int &c[]={a,b}

Leave a comment