strlen("NOX Calc Disable\r\n")
时间: 2023-08-24 15:07:52 浏览: 84
strlen函数使用方法.rar
strlen("NOX Calc Disable\r\n")的结果是18。strlen函数用来计算字符串的长度,它会计算字符串中的字符个数,直到遇到字符串结尾的空字符'\0'。在这个例子中,字符串"NOX Calc Disable\r\n"共有18个字符,所以strlen的结果是18。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [用strlen计算字符串长度时不算最后\n](https://blog.csdn.net/m0_74439888/article/details/128540323)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [C语言学习笔记---strlen()函数和sizeof()函数](https://blog.csdn.net/qq_20222919/article/details/121036156)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文