• edited by
779 views

1 Answer

0 0 votes

a is a array of integers... a is memory address of a[0] and a+1 is memory address of a[1] and etc...

p is array of pointers... p memory address of p[0] and p+1 is memory address of a[1] and etc...

note that value of p and address of a's are comparable... And it is comparing memories... Means how much distance btw them

ptr is a pointer to pointer. means which can take address of pointer.. Therefore value of ptr and address of p is comparable..

*ptr++ ====> *(ptr++) from associavity and precedence rules..

*++ptr ====> *(++ptr) from associavity and precedence rules..

++*ptr ====> ++(*ptr) from associavity and precedence rules..

according to these basics....

 

Position:
Show:

Related questions

0 0 votes
0 0 answers
796
796 views
0 0 votes
1 1 answer
530
530 views
kunal goswami asked Nov 17, 2018
530 views
In two level cache first level cache minimizes cache miss ratio , second level minimizes cache hit ratio . Explain .
0 0 votes
1 1 answer
1.5k
1.5k views
nag.swarna asked Nov 6, 2018
1,487 views
3 3 votes
1 answers 1 answer
1.1k
1.1k views
Mk Utkarsh asked Jan 13, 2018
1,080 views