网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

【单选题】语句:printf("%d n",12 &012);的输出结果是()

A.12

B.8

C.6

D.012


参考答案和解析
B 解析:位运算12&012即1100&1010,结果是1000,转化成十进制数是8,所以,输出结果是8。
更多 “【单选题】语句:printf("%d n",12 012);的输出结果是()A.12B.8C.6D.012” 相关考题
考题 以下程序的输出结果是 【 10 】 。#include string.hmain( ){ printf("%d\n",strlen("IBM\n012\1\\"));}

考题 以下程序的输出结果是_____.# includemain(){ printf(“%d\n”,strlen(“IBM\n012\1\\”));}

考题 如下语句printf("%c\n",′B′+40);在执行后的输出结果是 【9】 。

考题 下面语句的输出结果是______。printf("%d\n",strlen("\t\"065\xff\n"));A.14B.8C.5D.输出项不合法,无正常输出

考题 读下面程序段(字符串内没有空格字符): printf("%d\n",strlen("ATS\n012\1\\"));其输出结果是( )。A.11B.10C.9D.8

考题 有以下程序: #includestdio.h #includestrin9.h main( ) {printf{"%d\n",strlen("%d\n",strlen("ATS\n012\|"));} 程序运行后的输出结果是( )。A.3B.8C.4D.9

考题 下面语句的输出结果是______。 printf("/od\n",strlen("\t\"\065\xff\n"))A.14B.8C.5D.输出项不合法,无正常输出

考题 执行语句printf(“%u\n”,+12345)的输出结果是( )。A.12345B.0C.-1D.非定值

考题 “printf("%d\n",strlen("\t\"\023\xAB\nC"));”语句的输出结果是( )。

考题 语句:printf("%d\n",12012);的输出结果是( )。A.12B.8C.6D.12

考题 以下程序的输出结果是( )。 main { int a=3: printf("%d\n",(a+a-=a*a)); }A.-6B.12S 以下程序的输出结果是( )。 main { int a=3: printf("%d\n",(a+a-=a*a)); }A.-6B.12C.0D.-12

考题 有以下程序#include stdio.h#include string.hmain( ){ printf("%d\n",strlen ("ATS\n012\1") ); }程序运行后的输出结果是A)3B)8C)4D)9

考题 语句“printf(″a\bre″\‘hi\‘y\\\bou\n″);”的输出结果是( )。A.B.C.D.A.AB.BC.CD.D

考题 请读程序片段(字符串内没有空格字符): printf("%d\n",strlen("ATS\n012\1\\"));上面程序片段的输出结果是_______。A.11B.10C.9D.8

考题 以下程序片段的输出结果是______。 char str[]="abc\n\012\\\""; printf("%d",strlen(str));A.4B.5C.6D.7

考题 有以下程序:includestdio.hincludestrin9.hmain( ){printf{%d\n,strlen(%d\n,strlen(ATS\n012\|));}程序运行后的输出结果是( )。A.3B.8C.4D.9

考题 有以下程序:includemain(){int x=102,y=012; printf("%2d,%2d\n",x,y);}执行后的输出 有以下程序: #include <stdio.h> main() { int x=102,y=012; printf("%2d,%2d\n",x,y); } 执行后的输出结果是( )。A.10,01B.02,12C.102,10D.02,10

考题 下面语句的输出结果是_______。 printf("%d\n",strlen("\t\"\065\xff\n"));A.14B.8C.5D.输出项不合怯,无正常输出

考题 printf("%d,%o,%x",0x12,12,012);的输出结果是()

考题 请读程序片段(字符串内没有空格):printf(%d/n,strlen(ATS/n012/1//));的输出结果是()A、11B、10C、9D、8

考题 语句:printf(“%d、n”,12012);的输出结果是()   A、12B、8C、6D、012

考题 设有说明语句:int x=1;,语句printf(“%d/n”,-x++);的输出结果是()A、-1B、0C、1D、2

考题 语句printf((“%d/n“,strlen(“ats/no12/1//“));的输出结果是()。A、11B、10C、9D、8

考题 若有以下程序段:charstr[]=”ab/n/012///””;printf(“%d”,strlen(str));该程序段的输出结果是()A、3B、4C、6D、12

考题 单选题请读程序片段(字符串内没有空格):printf(%d/n,strlen(ATS/n012/1//));的输出结果是()A 11B 10C 9D 8

考题 单选题语句:printf(“%d、n”,12012);的输出结果是()A 12B 8C 6D 012

考题 单选题设有定义int m=1,n=-1;则执行语句printf(〞%d/n〞,(m--++n));后的输出结果是()A -1B 0C 1D 2

考题 单选题设有说明语句:int x=1;,语句printf(“%d/n”,-x++);的输出结果是()A -1B 0C 1D 2