Alice52 / c-tutorial

The repository is about c, including c, csharp, cpp.
MIT License
0 stars 0 forks source link

[syntax] ? #4

Open Alice52 opened 4 years ago

Alice52 commented 4 years ago

? explain

  1. ? : 引用类型可以使用空引用表示一个不存在的值, 而值类型通常不能表示为空
    • string str=null; 是正确的,int i=null;

reference

  1. https://www.cnblogs.com/youmingkuang/p/11459615.html