gpt4 book ai didi

C编程: How to print a character value passed as a parameter

转载 作者:行者123 更新时间:2023-11-30 20:48:43 25 4
gpt4 key购买 nike

例如有一个方法dog:

void dog(char C,int N)
{
//here if I want to print the value of C with a print statement,how do I do that?
}

最佳答案

怎么样

printf("the value of c = %c\n", C);

关于C编程: How to print a character value passed as a parameter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32675286/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com