Skip to content

igozdev/igozdev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

// main.cpp
#include <iostream>
#include <limits>

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<int>::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."
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published