• one_old_coder@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 days ago

    In C++, main MUST return int, but it can be omitted, like int main() { }

    If the Pico is a microcontroller without an OS, it’s not supposed to “return,” it makes no sense. It’s like saying “what will you do after you are dead?” You’re supposed to loop forever or something.

    But I may be wrong…