0
How this program is execute please explain
I didn't understand this program https://code.sololearn.com/c1p03Z1fHjxj/?ref=app
1 Answer
+ 3
Initially p points to H
When you increment p it will be incremented by 1byte since p is of type char .
after p++;
*p --> e
since you declared another pointer q which is of type int
when assigning value of p to q you need to convert to int.
*q --> e
After q++
when you increment q it will be incremented by 4bytes .
*q --> space