单选题:下列程序的输出结果是(  )。main(){ int a=6,b=3,c;if(a<b){c=a*b;printf(”%

  • 题目分类:C语言
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
下列程序的输出结果是(  )。
main()
{ int a=6,b=3,c;
if(a<b)
{c=a*b;printf(”%d%d,%d\n”,b,a,c)i)
else
{c=b/a;print[(”%d,%d,%d\n”,b,a,c);)
) A.3,6,18
B.3,6,2
C.6,3,18
D.6,3,2

参考答案:
答案解析:

有以下程序:#include<stdi0.h>main()(int a[]={2,4,6,8,lo),y=1,x,*P

有以下程序:#includemain()(int a[]={2,4,6,8,lo),y=1,x,*P;p=&a[1];for(x=

查看答案

下面的函数调用语句中func函数的实参个数是( )。rune((f2v1,v2),(v3,v4,v5),(v6,max(

下面的函数调用语句中func函数的实参个数是( )。rune((f2v1,v2),(v3,v4,v5),(v6,max(v7,v8)))A.3 B.4 C.5

查看答案

C语言中,下列不合法的字符串常量是( )。

C语言中,下列不合法的字符串常量是( )。A.”\121” B.'y=' C.”\n\n” D.”ABCD\x6d”

查看答案

Why isn't the word“sir”commonly used in Britain7

Why isn't the word“sir”commonly used in Britain7 A.Because it sounds too servil

查看答案

Both Laptop and Mobile phones sales dipped in the middle of

Both Laptop and Mobile phones sales dipped in the middle of the period, with th

查看答案