Share 0ll in c++

ducphong363

New member
## 0ll trong C ++

0ll là một hằng số trong C ++ đại diện cho giá trị nhỏ nhất có thể được biểu thị bằng một số nguyên dài dài không dấu.Nó bằng 18446744073709551615.

0ll được sử dụng trong C ++ để thể hiện số lượng rất lớn.Ví dụ: bạn có thể sử dụng 0LL để biểu diễn số giây trong một năm.

0ll không phải là một theo nghĩa đen trong C ++.Điều này có nghĩa là bạn không thể viết nó trực tiếp vào mã của bạn.Thay vào đó, bạn phải sử dụng `std :: numeric_limits <không dấu dài> :: min ()` hằng số.

Ví dụ: mã sau in giá trị của 0ll:

`` `C ++
#include <Istream>
#include <nimits>

int main () {
std :: cout << std :: numeric_limits <không dấu dài> :: min () << std :: endl;
}
`` `

Đầu ra:

`` `
18446744073709551615
`` `

## hashtags

* #C ++
* #Programming
* #Constants
* #Unsited lâu dài
* #Integers
=======================================
## 0LL in C++

0LL is a constant in C++ that represents the smallest value that can be represented by an unsigned long long integer. It is equal to 18446744073709551615.

0LL is used in C++ to represent very large numbers. For example, you could use 0LL to represent the number of seconds in a year.

0LL is not a literal in C++. This means that you cannot write it directly in your code. Instead, you must use the `std::numeric_limits<unsigned long long>::min()` constant.

For example, the following code prints the value of 0LL:

```c++
#include <iostream>
#include <limits>

int main() {
std::cout << std::numeric_limits<unsigned long long>::min() << std::endl;
}
```

Output:

```
18446744073709551615
```

## Hashtags

* #C++
* #Programming
* #Constants
* #Unsigned long long
* #Integers
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top