top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Is there any qualifier for alias in C or we need to manage with pointers only?

+2 votes
365 views
Is there any qualifier for alias in C or we need to manage with pointers only?
posted Mar 6, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

There is no such thing called alias however pointer works perfect for the alias case see the following example -

int a;
int *p=a;

now p is a address of a so in all practical purpose *p is a alias of a.

answer Mar 7, 2015 by Salil Agrawal
Similar Questions
+4 votes

Is it valid in C

P = P1 + P2 - P3 
+1 vote

Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function in C programming?

...