printf("%d\n",sizeof('c'));
In C99 - 6.4.4.4 Character constants
An integer character constant is a sequence of one or more multibyte characters enclosedin single-quotes, as in 'x'.
An integer character constant has type int.
The value of an integer character constant containing more than one character (e.g.,'ab'), or containing a character or escape sequence that does not map to a single-byte execution character, is implementation-defined.
in ISO/IEC14882 Programming languages — C++
2.13.2 Character literals
A character literal is one or more characters enclosed in single quotes, as in ’x’,
An ordinary character literal that contains a single c-char has type char ..... An ordinary character literal that contains more than one c-char is a multicharacter literal. A multicharacter literal has type int and implementation-defined value
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· .NET周刊【3月第1期 2025-03-02】
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· [AI/GPT/综述] AI Agent的设计模式综述