a = getchar()
时间: 2024-05-17 12:14:17 浏览: 42
a = getchar()表示使用getchar()函数获取输入的一个字符,并将其赋值给变量a。根据引用的说明,getchar()返回的是该字符的ASCII码。所以a会存储输入字符的ASCII码值。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [getchar函数理解](https://blog.csdn.net/louishu_hu/article/details/79467403)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [用getchar函数输入一串字符,依次读入](https://download.csdn.net/download/pohuaixianglin/8602807)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文