1. char *str="hello wrold"; //会有warning
const char *str="hello wrold"; //不再有warning
2.
DEV-C++、KEIL:
int i; //编译器自动设置为0
vim:
int i; //编译器会分配个随机值
1. char *str="hello wrold"; //会有warning
const char *str="hello wrold"; //不再有warning
2.
DEV-C++、KEIL:
int i; //编译器自动设置为0
vim:
int i; //编译器会分配个随机值