0 votes 0 votes char c = 'Z'; char a[] = "Hello world"; char *ptr1 = &c; char *ptr2 = a; char *ptr3 = &a[0]; char *ptr4 = &a[6]; char *ptr5 = a + 6; Can someone explain this... Programming in C array-of-pointers strings programming-in-c + – Ahsanul Hoque asked Feb 27, 2018 edited Mar 30, 2019 by Abdul Wazeed Ahsanul Hoque 377 views answer comment Share Follow See 1 comment See all 1 1 comment reply srestha commented Feb 27, 2018 reply Follow Share here ptr1,ptr2,ptr3,ptr4,ptr5 all are storing static memory address in stack ptr1 storing starting memory address for Z ptr2 storing starting memory address for "Hello World" ptr3 storing memory address for H ptr4 storing memory address for W ptr5 storing=starting address for Hello World +6*sizeof(char)=address of W 3 votes 3 votes Please log in or register to add a comment.