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

有以下程序:#include main() { int i,j,k,a=5,b=6; i=(a==b)?++a:--b; j=a++;k=b;printf("%d,%d,%d ",i,j,k); } 程序的运行结果是()。


A.7,6,5

B.5,5,5

C.7,5,5

D.5,6,5

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

参考答案
您可能感兴趣的试题
  • (29 )有以下程序# include (stdio.h )main (){ int a[5]= { 1 , 2 , 3 , 4 , 5 } , b[5] ={ O

  • (29 )有以下程序# include (stdio.h )main (){ int a[5]= { 1 , 2 , 3 , 4 , 5 } , b[5] ={ O

  • 有以下程序#include<stdio.h>int fun( ){static int x=1;x+=1;return x;}main( ){int i s=

  • 有以下程序:#include struct STU{char name[10]; int num; int Score;};main(){struct

  • 有以下程序: #include<stdio.h> main( ) {int X=011; printf(\%d\n ++x); } 程序运

  • 有以下程序:#include #include main(int argc char *argv[]){ int i len=0;f