問題詳情
40 下列以C 程式語言撰寫之程式執行後產生之輸出為何?
#include<stdio.h>#define NEGATIVE(x) -xmain(){int x = 1, y = 4;printf(“%dn”, -NEGATIVE(x+y));}
(A) 5
(B)-5
(C)-3
(D)本程式編譯時,編譯器(Compiler)發生錯誤訊息,不能執行而無輸出結果產生
#include<stdio.h>#define NEGATIVE(x) -xmain(){int x = 1, y = 4;printf(“%dn”, -NEGATIVE(x+y));}
(A) 5
(B)-5
(C)-3
(D)本程式編譯時,編譯器(Compiler)發生錯誤訊息,不能執行而無輸出結果產生
參考答案
答案:A
難度:困難0.308824
統計:A(21),B(23),C(10),D(9),E(0)
內容推薦
- 30 假設硬碟總共有5000 個磁柱(cylinder),這些磁柱的編號由0 開始一直到4999。目前磁碟讀寫頭正好在第300 個磁柱並且往第4999 磁柱的方向移動。在佇列中目前總共有8 件工作要完
- 39 有關DOS 檔案系統及UNIX 檔案系統,下列敘述何者錯誤?(A) DOS 檔案系統採用鏈結配置(linked allocation)方式(B)在DOS 檔案系統中,每個檔案各有一個檔案存取表(
- 科学家指出,“当黑洞或坍缩星等大型天体在太空加速时,会产生引力波。但由于它非常微弱,我们一直无法探测到“””。科学家拟实施“激光干涉仪太空天线”实验,以探测这种引力波,科学家断言尚未
- 下列文句何者完全沒有錯別字?(A)明日請早,以免向偶(B)這場比賽,我們的勝利垂手可得(C)暗夜醒來,她常常哭到不能自己 (D)超市特賣,消費者無不趨之若鶩
- 有關上訴之敘述,下列何者錯誤?(A)被告對於下級法院之判決有不服者,得上訴於上級法院(B)檢察官對於下級法院之判決有不服者,得上訴於上級法院(C)檢察官不得為被告之利益提起上訴(D)宣告死刑或無
- 29 在開放系統互連(Open System Interconnection, OSI)參考模型之網路架構中,下列何者提供FTP(File TransferProtocol)檔案傳輸的服務?(A)會議
- 1912年,德国科学家魏格纳提出了大陆漂移说,否定了前人的大陆均衡说、路桥说,却被大多数数学家斥为“荒诞的怪论”。20世纪50年代,支持大陆漂移说的新证据越来越多,大陆漂移说重新活跃起
- 38 與合併排序(merge sort)比較,堆積排序(heap sort)有何優點?(A)平均計算時間較好(B)最壞情況(worst case)的計算時間較好(C)只需要固定的額外空間(D)其最佳運
- 20 下列那一個軟體無法幫助你從遠端控制你的作業系統?(A)VNC(B)遠端桌面連線(微軟)(C) PCAnywhere(賽門鐵克公司)(D) VMWare
- 28 下列那一種網路軟體裝置,可以保護區域網路免於來自網際網路的惡意攻擊?(A)橋接器(Bridge)(B)交換式集線器(Switch)(C)網路介面卡(Network Interface Card)
內容推薦
- 温家宝总理在2010年新春团拜会上提出,“要人民生活的更加幸福、更有尊严”。在十一届全国人大三次会议上,“人民的尊严”被首次写进了政府工作报告。这表明①人民的尊严是经济社会发展的基础
- 党的十七届四中全会通过的《中共中央关于加强和改进新形势下党的建设若干问题的决定》指出,党内民主的生命,要切实推进党内民主建设。推进党内日民主是①争强党内民主的创新活力的重要保证②加强党
- John bent the rule to his own advantage. What hedid was an act from ____ rather than from princip
- 2010年全国宗教工作会议强调,要认真贯彻实施《宗教事务条例》,充分发挥宗教界生物积极作用,树立宗教和谐理念,推广宗教和谐价值。宗教和谐价值的推广是基于①宗教团体已成为联系信教群众的爱
- It is impossible for a patient with mild or acute symptoms to know if the tumor is ____ or malign
- (A) away (B) loose (C) off (D) down
- 我国从“和平开放 合作和谐共赢”的理念出发,在维护世界和平、促进给他发展,推动联合国发展改革,反对恐怖主义,参与地区维和行动等方面发挥了积极的建设性作用,收到愈来越多国家的尊重和认同。
- Computer graphics is just an appropriate ____ for turning algebra into forms.(A) altruism (B) lib
- (A) defeated (B) angry (C) afraid (D) tired
- (A) even (B) then (C) and (D) to
- The police officer was accused of ____ while handling the traffic accidents. He let the drunk dr
- (A) evolve (B) to evolve (C) evolved (D) evolving
- Have you ever stood at the bus stop watching hundreds of cars go by and wondered just how many of th
- According to this passage, which of the following statements is true?(A) The annual sale is
- The _____ from automobiles makes the air unhealthy.(A) emission (B) permission (C) transmission (
- (A) lining up with (B) summing upwith(C) ending up with (D) keeping up with
- The H1N1 flu seems a far cry from the mass killer it was feared to be when it first emerged in Mexic
- (A) After all, what sort of creep would pick up a stranger off the side of the road?(B) Can y
- The word itin the second last line refers to ______.(A) electric bill (B) power strip(C) ele
- Make sure you drink a lot of water when you exercise on a hot day; you don’t want to get _______.
- (A) by way of (B) on top of (C) in contact with (D) at odds with
- (A) alert (B) demand (C) profile (D) risks
- (A) After all, what sort of creep would pick up a stranger off the side of the road?(B) Can y
- 小華就讀高中不久,便以同學多擁有手機和配戴隱形眼鏡為由,而請求父母親滿足其需求。依上述內容判斷,最主要是何種管道對小華學習適應社會生活的影響?(A)家庭(B)學校 (C)同儕團體 (D)傳播媒體
- We are fast becoming a nation of social networking addicts, and no group more so than students. But