C语言输出结果为_Some output:1,2,3
时间: 2023-04-10 07:05:12 浏览: 65
答案是:
```c
#include <stdio.h>
int main() {
int arr[] = {1, 2, 3};
int *p = arr;
printf("_Some output:");
printf("%d,", *p++);
printf("%d,", *p++);
printf("%d\n", *p++);
return 0;
}
```
输出结果为:_Some output:1,2,3
相关问题
写一段c语言代码输出helloworld
Sure, here's some code in C language to output "Hello, world!" on the screen:
```
#include <stdio.h>
int main() {
printf("Hello, world!");
return 0;
}
```
Hope that helps!
用c语言设计十个数比较输出最大数
Sure, I can help you with that. Here's some sample code in C language to compare ten numbers and output the maximum value:
```
#include <stdio.h>
int main() {
int numbers[10]; // define an array of 10 integers
int max = 0; // initialize the maximum to be zero
for(int i=0; i<10; i++) {
printf("Enter number %d: ", i+1);
scanf("%d", &numbers[i]);
if(numbers[i] > max) {
max = numbers[i];
}
}
printf("The maximum number is: %d\n", max);
return 0;
}
```
Hope this helps! Do you have any other question for me?