当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

有以下程序段:struct st{int x;int *y; } *pt;int a[]={1 2} b[]={3 4};struct st c[2]={10 a 2


有以下程序段: struct st{int x; int *y; } *pt;int a[]={1,2}, b[]={3,4};struct st c[2]={10,a,20,b};pt=c; 以下选项中表达式的值为11的是()。

A.*pt->y

B.pt->x

C.++pt->x

D.(pt++)->x

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 以下程序的输出结果是 include struct st { int x;int *y;}*p; int dt[4]={10,2

  • 以下程序的输出结果是 include struct st { int x;int *y;}*p; int dt[4]={10,2

  • 有以下程序#include <stdio.h>struct st{int x, y, z;} data[2]={3,10,2,20,15,7};main(){

  • 有以下程序#include "stdio.h"main(){ struct date { int number; float fenzhi; char name; }st

  • 下面程序的输出结果为()。struct st { int x; int*y; } *p; int dt[4]={10,20,30,40}; struct st

  • 有以下程序段struct st{int x;int *y;)*pt;int a[]={l 2} b[]={3 4};struct st c[2]={10 a