测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A48943. 下述程序的输出结果是( )#include"stdio.h"void main(){ int a[]={7,4,6,3,10}; int m=10,k,*ptr=&a[0]; for(k=0;k<5;k++) m=*(ptr+k)<m?*(ptr+k):m; printf("%d\n",m);}

单选题 较易

题目描述

下述程序的输出结果是(    )

#include"stdio.h"

void main()

{

    int a[]={7,4,6,3,10};

int m=10,k,*ptr=&a[0];

for(k=0;k<5;k++)

    m=*(ptr+k)<m?*(ptr+k):m;

printf("%d\n",m);

}

选项(单选)

上一题 下一题