要打印一个字符串数组,你可以使用循环来遍历数组中的每个字符串,并使用printf函数将其打印出来。以下是一个示例代码: #include <stdio.h> int main() { char *strArr[] = {"Hello", "World", "C", "Programming"}; int i; for (i = 0; i < 4; i++) { printf("%s\n", strArr[i]); } ...
include int main() { int a,b; scanf(%d%d, printf(int : %d\tchar: %d\n,sizeof(int),sizeof(char)); printf(%c\t%c,a,b); return 0; }请注意啦:整形数据和字符型数据只有在一定范围之间才可以相互转换!