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
Lets share our knowledge and remain wise
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
Could we have an array of references.
Like this,
int b,c;
int& a[]={b,c}
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}
Thanks I got it.