I am new to C. I just want to know why initializing the array of int with int is working and why initializing an array of char with char is not working. Or am I wrong thinking that "1" is a char?
#include <stdio.h>
int main()
{
int incoming_message_test[2] = {1, 2}; // why does this work?
char incoming_message[2] = {"1", "2"}; // why does this not work?
return 0;
}
"1"is not achar, it's an array of twochars.