https://github.com/igozdev/igozdev
https://github.com/igozdev/igozdev
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/igozdev/igozdev
- Owner: igozdev
- Created: 2023-07-29T21:27:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-22T22:51:51.000Z (over 1 year ago)
- Last Synced: 2025-11-29T10:19:18.417Z (5 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```cpp
// main.cpp
#include
#include
auto main([[maybe_unused]] int argc, [[maybe_unused]] char** argv) -> int {
std::operator<<(std::cout, "Hello, world!").operator<<(std::endl);
constexpr auto int_min = std::numeric_limits::min();
return int_min % -((int)sizeof(+char{})["Goodbye, world."]);
// ISO/IEC JTC1/SC22/WG21 4842:2024, [expr.mul]
// "... if the quotient a/b is representable in the type
// of the result, (a/b)*b + a%b is equal to a; otherwise,
// the behavior of both a/b and a%b is undefined."
}
```