How this program is execute please explain | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How this program is execute please explain

I didn't understand this program https://code.sololearn.com/c1p03Z1fHjxj/?ref=app

25th Jun 2020, 1:43 PM
Sachin Saxena
Sachin Saxena - avatar
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
25th Jun 2020, 2:01 PM
uday kiran
uday kiran - avatar