Yeah I changed it because I don't know which way is right.
The goal of the problem is to use pointer notation to write a loop to rotate all values in a to the left by one element.
I changed it again below just a little because I'm pretty sure it's how it should work.
Thank you for your help.
Code:
#include <stdio.h>
int main (void)
{
// Local Declarations
char temp;
char a[6] = {'z', 'x', 'm', 's', 'e', 'h'};
char* walker;
char* plast;
// Statements
plast = a + 5;
temp = *a;
printf("Array before: %c %c %c %c %c %c\n", 'z', 'x', 'm', 's', 'e', 'h');
printf("Array after: ");
for (walker = a; walker < plast; walker++)
*walker = *(walker + 1);
*walker = temp;
printf (" %c", temp);
fflush(stdout);
getch();
return 0;
}//main