Step 1: char str[25] = "IndiaPARINAM"; The variable str is declared as an array of characteres and initialized with a string "IndiaPARINAM".
Step 2: printf("%s\n", &str+2);
=> In the printf statement %s is string format specifier tells the compiler to print the string in the memory of &str+2
=> &str is a location of string "IndiaPARINAM". Therefore &str+2 is another memory location.

The statement str = "Kanpur"; generates the LVALUE required error. We have to use strcpy function to copy a string.
To remove error we have to change this statement str = "Kanpur"; to strcpy(str, "Kanpur");
The program prints the string "anpur"