This is my whole file that I'm trying to compile:


Code:
#include <stdio.h>


static int MAXIM = 100;


void main() {
  char sentence[MAXIM];
  printf("Your sentence?: ");
  scanf("%s", sentence);


  printf("\n");
  
  for( int i = 0  ; i == MAXIM ; i++ ) {
    char ch = sentence[i];
    if (ch = " ")
      printf("\n");
    else
      printf("%c", ch);
  }
}
Running that through GCC will

Code:
stuff.c In function `main':
space.c:14:12: warning: assignment to `char' from `char *' makes integer from pointer without a cast [-Wint-conversion]
   14 |     if (ch = " ")
      |            ^
What'd I do wrong?