0 votes 0 votes #include<stdio.h> void foo(char **); int main() { char *string = "Hello"; foo(&string); printf("%s",string); return 0; } void foo(char **a) { *a++; } What is it still printing the same string? Programming in C programming-in-c output + – vaishali jhalani asked Nov 12, 2016 vaishali jhalani 431 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Arjun commented Nov 12, 2016 reply Follow Share what answer you expect and why? 0 votes 0 votes Prashant. commented Nov 12, 2016 reply Follow Share *a++; here a++ is done first then * applied that is base address of string hello is changed. It what you expect is want to print then use (*a)++ ; you get ello 2 votes 2 votes vaishali jhalani commented Nov 12, 2016 reply Follow Share Yes.. 0 votes 0 votes Please log in or register to add a comment.