+ 2
What is this in c ?
Int a[]; Int *p; *p=*a; Can any explain what this is do
3 Respostas
+ 2
First int a[] is equal to int *a.
Second: a and p are pointers to ints.
Third: *p evaluate value instead of location in memory.
Summary:
We assign value of *a to *p.
+ 6
With the code as is, you may get an error because you are trying to access the value pointed to by p without having initialised p yet.
+ 4
Read about pointer values