2010年湖南省对口高考真题中,哪一道题目的解答过程最复杂?
- 内容介绍
- 文章标签
- 相关推荐
本文共计1877个文字,预计阅读时间需要8分钟。
一、选择题目+1、下列不符合C语言合法标识符的是__________。A.+_124B.+124abcC.+sum124D.a_124+2
二、若有如图1所示存储结构,且变量定义如下:struct node{int data; struct node *next;}; p, q, r;若要实现图2所示的存储结构,请写出相应的代码。
一、选择题
1、
下列不是C语言合法标识符的是__________。
A. _124 B. 124abc C. sum124 D. a_124
2、
若有如图1所示存储结构,且变量定义为struct node{int data;struct node *next;}p,q,r;若要实现图2所示的存储结构,可选用的赋值语句是__________。
A. p=r; B. p=q->next; C. p->next=q; D. p->next=q->next;
二、写程序结果
#include <stdio.h>
main()
{
double x,y;
printf("%.2f",(x=5,y=x+3/2));
}
运行结果是____________________。
#include <stdio.h>
#define CUBE(x) (x*x*x)
main()
{
int n=5;
int s=CUBE(++n);
printf("%d",s);
}
运行结果是____________________。
本文共计1877个文字,预计阅读时间需要8分钟。
一、选择题目+1、下列不符合C语言合法标识符的是__________。A.+_124B.+124abcC.+sum124D.a_124+2
二、若有如图1所示存储结构,且变量定义如下:struct node{int data; struct node *next;}; p, q, r;若要实现图2所示的存储结构,请写出相应的代码。
一、选择题
1、
下列不是C语言合法标识符的是__________。
A. _124 B. 124abc C. sum124 D. a_124
2、
若有如图1所示存储结构,且变量定义为struct node{int data;struct node *next;}p,q,r;若要实现图2所示的存储结构,可选用的赋值语句是__________。
A. p=r; B. p=q->next; C. p->next=q; D. p->next=q->next;
二、写程序结果
#include <stdio.h>
main()
{
double x,y;
printf("%.2f",(x=5,y=x+3/2));
}
运行结果是____________________。
#include <stdio.h>
#define CUBE(x) (x*x*x)
main()
{
int n=5;
int s=CUBE(++n);
printf("%d",s);
}
运行结果是____________________。

