Welcome to the forum
It is
and not
Every time you write it like this, you can see the picture of Salem to see what happens.
Run this code and you will understand everything
Code:
#include <stdio.h>
int main(void)
{
/* Create an array which has 1, a space,2 and the
* null terminating character as contents */
char array[] = { '1' , ' ' , '2' , '\0'};
int i;
for( i = 0 ; i < 4 ; i++)
{
/* Space */
if(array[i] == ' ')
printf("A space!\n");
if(array[i] == '1')
printf("A number! Which number? %c\n",array[i]);
if(array[i] == '2')
printf("A number! Which number? %c\n",array[i]);
if(array[i] == '\0')
printf("null terminating character found!\n");
}
return 0;
}