+ 1

What is pointer arithmetic in c?

16th Oct 2018, 6:06 PM
Prateek Jena
Prateek Jena - avatar
2 Antworten
+ 3
char *p = "string"; *p is 's' *(p + 1) is 't'
16th Oct 2018, 8:08 PM
Matúš Semančík
Matúš Semančík - avatar
+ 1
Pointer arithmetic is nothing but the normal arithmetic of the pointer addresses.
17th Oct 2018, 2:53 AM
Prateek Jena
Prateek Jena - avatar