Why thos for loop isnt working? : Hello i have loop like this:

    char word[10];
 
    word[0] = 'a';
    word [1] = 'b';
    word[2] = 'c';
    word[3] = '\0';
 
 
 
    char* ptr = word;
 
 
 
 
    int x = 0;
  
    int counter = 0;
  
  
    for ( char c = *(ptr + x); c == '\0'; c = *(ptr + x))
    {
       counter++;
       x++;
    }

After execution of this loop counter is equal to 0. I dont know why.

Any ideas why this loop exits? 