- Hands-On Object:Oriented Programming with C#
- Raihan Taher
- 99字
- 2021-07-02 12:44:34
Integer
An integer is a number that can have a plus (+) or minus (-) sign as a prefix, but this is optional. If no sign is given, it is considered as positive. You can define numeric literals in int, long, or hexadecimal form:
int numberInDec = -16;
int numberInHex = -0x10;
long numberinLong = 200L;
You can see that the first literal, -16, is a literal that's been specified in an integer variable, while the same value is assigned to an integer using a hexadecimal literal. The long variable is assigned a value with an L suffix.
推薦閱讀
- Spring 5企業級開發實戰
- Flask Blueprints
- Kubernetes實戰
- Vue.js前端開發基礎與項目實戰
- HTML5 移動Web開發從入門到精通(微課精編版)
- C語言程序設計實訓教程
- Visual C++串口通信技術詳解(第2版)
- 深度學習:算法入門與Keras編程實踐
- 正則表達式經典實例(第2版)
- KnockoutJS Starter
- Natural Language Processing with Python Quick Start Guide
- Learning Android Application Testing
- 程序員必會的40種算法
- Raspberry Pi Blueprints
- C++面向對象程序設計