جميع الكتب

مهني

1 Markets I: The Ecosystem and Exchange-Traded Marketsالأسواق عبر الإنترنت 2 Markets II: Rates, FX and Creditالأسواق عبر الإنترنت 3 Markets III: Commodities, Energy and Cryptoالأسواق عبر الإنترنت 4 Quantitative Methodsالأساليب عبر الإنترنت 5 Derivatives and Volatilityالمشتقات عبر الإنترنت 6 Rates, Credit, XVA and Riskالفائدة والائتمان والمخاطر عبر الإنترنت 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosالبحث عبر الإنترنت 8 Strategies I: Equities and Futuresالاستراتيجيات عبر الإنترنت 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksالاستراتيجيات عبر الإنترنت 10 Microstructure and Executionالتنفيذ عبر الإنترنت 11 Market Making and High-Frequency Tradingصناعة السوق عبر الإنترنت 12 Machine Learning for Marketsتعلم الآلة عبر الإنترنت 13 Low-Latency Softwareالتكنولوجيا عبر الإنترنت 14 Networks, Hardware and Trading Infrastructureالتكنولوجيا عبر الإنترنت 15 Research, Data and Risk Platformsالتكنولوجيا عبر الإنترنت 16 The Desk and the Firmالشركة عبر الإنترنت 17 The Industry: Firms, Roles and Careersالمسارات المهنية عبر الإنترنت 18 Interviews I: Maths, Probability and Speedالمسارات المهنية عبر الإنترنت 19 Interviews II: Markets, Trading Games and the Final Roundالمسارات المهنية عبر الإنترنت 20 Interviews III: Codeالمسارات المهنية عبر الإنترنت
التطبيقات حول المدرب تسجيل الدخول ابدأ القراءة

Computer Science · المسرد

ما معنى Integer promotion, usual arithmetic conversions؟

يُعرف أيضًا باسم: integer promotion · usual arithmetic conversions

Definition 2.3 University Computer Science — Year 1 · الفصل 2 — C: Types, Operators and Control Flow

The integer promotion converts an operand of a type narrower than int (char, short, their unsigned forms, bool) to int, since int can represent all their values. The usual arithmetic conversions then bring both operands of a binary operator to a common type: if either is floating, to the wider floating type. Otherwise, after promotion, with the ranks int << long << long long: (i) if both operands are signed or both unsigned, to the integer type of greater rank; (ii) if the unsigned operand has a rank greater than or equal to the other’s, to its unsigned type; (iii) if the signed operand has the greater rank, to that signed type when it can represent every value of the unsigned one, and otherwise to the unsigned type of the same rank. A signed operand converted to an unsigned type of width NN takes its value modulo 2N2^N.

اقرأ في الفصل →