I have read the relevant problems about Unkonwn Behavoir.But I insist to ask WHY The following code:
#include <stdio.h>
int main(){
char a[] ={'1','2','3',};
// char *p = a;
puts(a);
return 0;
}
when I comment the char *p =a
,it can output the correct answer 123.But when I uncomment this sentence,the output gives the 1239�( with some strange characters.What exactly is the cause of this problem?