The code reads a character from the input, converts it to lowercase by adding 32 to its ASCII value, and then prints the character 'A' to the output.

However, the converted character is not printed to the output. Instead, the character 'A' is printed, which is not related to the input character.

To print the converted character, the last line should be changed to:

putchar(A);

#include stdiohint main char A; A=getchar; A+=32; putcharA; return 0;

原文地址: https://www.cveoy.top/t/topic/gYJW 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录