+ 1

When we print the value of p then the output is 2358844 and when we print the value of k the output is 2358840 but when we print

When we print the value of p then the output is 2358844 and when we print the value of k the output is 2358840 but when we print (p-k) why the output is 1 https://code.sololearn.com/cYFlZO2e5iGi/?ref=app

1st Jul 2019, 1:25 PM
Mohd Baqer Haider
Mohd Baqer Haider - avatar
1 Resposta
+ 1
Yes it is basics of pointer (addition and substraction) that in 32 bit machine 1 pointer consume only 4 bits so it prints 1. 1 here shows that there is 1 pointer in between
1st Jul 2019, 2:16 PM
Sharma Abhishek
 Sharma Abhishek  - avatar