题目内容

____ is equivalent to (*ptS).id.

A. *ptS.id
B. ptS@id
C. ptS>id
D. ptS->id

查看答案
更多问题

Each member of a structure variable is accessed by giving both the structure name and individual data item name, separated by a ____.

A. @
B. ->
C. :
D. .

____ is NOT a variable declaration statement.

A. struct {int month; int day; int year;} birth;
B. struct {int month; int day; int year;} birth, current;
C. struct Date {int month; int day; int year;};
D. struct Date {int month; int day; int year;} birth;

若成功执行下面的代码: float fahr,cels; fahr=90; cels=5/9*(fahr-32); printf("%-5.1fH=%5.1fC",fahr,cels); 给出输出结果?(其中#表示空格)

A. 90.0H=32.2C
B. 90.0#H=#32.2C
C. 90.0H=0.0C
D. 90.0#H=##0.0C

下面是一个程序的代码片段,每行代码给出行号: 1. int n, *p=NULL; 2. *p=&n; 3. scanf("%d",&p); 4. printf("%f\n",p); 上面哪一行代码是正确的,给出行号?

A. 1
B. 2
C. 3
D. 4

答案查题题库