C++课程笔记1

时间:2022-04-05 16:31:51

1. char  *str="hello wrold";  //会有warning

    const char  *str="hello wrold";  //不再有warning

 

2.

DEV-C++、KEIL:

    int  i;  //编译器自动设置为0

vim:

    int  i;  //编译器会分配个随机值