CS 202, Fall 2007 Assignment #2, Problem 3 The output of the code snippet is 1221. Explanation: p is declared as a character pointer and a is an array of characters. p is initialized with a+1 i.e p now points to a[1] as 'a' contains the address of a[0]. Now the statment a[2] = *p assigns value at p (i.e a[1]) to a[2] --- char array is now 1224 p[2] = *a assigns the value a[0] to p[2] ( refers to element a[3]) --- char array is now 1221 (final output) Note: 1) pointer subscript notation is used (for p[2] ). 2) 'a' is constant pointer to a[0].