0 votes 0 votes Find out the output of the given program? include<stdio.h> int main() { char s[] = "Hello"; char *ptr = s ; *ptr++; // please explain this line ptr++; printf("%s",ptr); return 0; } Programming in C programming-in-c + – Abhishek Kumar 38 asked Dec 26, 2018 • edited Dec 26, 2018 by Abhishek Kumar 38 Abhishek Kumar 38 351 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply srestha commented Dec 26, 2018 reply Follow Share $*(ptr++)$ it will first increment ptr by one position and then check value inside ptr 0 votes 0 votes Abhishek Kumar 38 commented Dec 26, 2018 reply Follow Share In the case of *p++, the ++ is a post-increment, so it will use the value of p, dereference it, THEN increment the pointer by one so now its point to 'e' 0 votes 0 votes Please log in or register to add a comment.