freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

c語(yǔ)言基礎(chǔ)教程課件(英文版)ch(已改無(wú)錯(cuò)字)

2023-02-12 07:00:09 本頁(yè)面
  

【正文】 – For example, op1 = op1 3。 A First Book of ANSI C, Fourth Edition 27 The Shift Operators (continued) A First Book of ANSI C, Fourth Edition 28 The Shift Operators (continued) A First Book of ANSI C, Fourth Edition 29 The Shift Operators (continued) ? The type of fill shown in Figures and , where the sign bit is reproduced in vacated bit positions, is known as an arithmetic right shift – In an arithmetic right shift, each single shift to the right corresponds to a division by 2 – Some puters automatically fill the vacated bits with 0s。 this type of shift is known as a logical shift ? For positive signed numbers, where the leftmost bit is 0, both arithmetic and logical right shifts produce the same result A First Book of ANSI C, Fourth Edition 30 Macros ? In its simplest form, the define preprocessor is used to equate constants and operators to symbolic names – define SALESTAX ? The substitutions are made by the C preprocessor just prior to program pilation ? C places no restrictions on the equivalences that can be established with the define statement ? When the equivalence consists of more than a single value, operator, or variable, the symbolic name is referred to as a macro A First Book of ANSI C, Fourth Edition 31 Macros (continued) ? For example, the equivalence established by the statement… define FORMAT The answer is %f\n …enables us to write the statement – printf(FORMAT, )。 ? The piler always receives the expanded version after the text has been inserted in place of the symbolic name by the preprocessor A First Book of ANSI C, Fourth Edition 32 Macros (continued) ? Equivalences can use arguments – define SQUARE(x) x * x – y = SQUARE(num)。 is expanded to y = num * num。 ? Advantage: since the data type of the argument is not specified, the macro can be used with any data type argument ? Be careful: val = SQUARE(num1 + num2)。 is expanded to val = num1 + num2 * num1 + num2。 ? Solution: use define SQUARE(x) (x) * (x) A First Book of ANSI C, Fourth Edition 33 Macros (continued) ? Macros are extremely useful when the calculations or expressions they contain are relatively simple ? A macro definition can be continued on a new line by using a \ ? The advantage of using a macro instead of a function is an increase in execution speed – No execution time loss due to the call and return procedures required by a function ? Disadvantage: the increase in required program memory space when a macro is used repeatedly – Each time a macro is used, the plete macro text is reproduced and stored as part of the program – A function is stored in memory only once A First Book of ANSI C, Fourth Edition 34 CommandLine Arguments A First B
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1