• lily33@lemm.ee
    link
    fedilink
    arrow-up
    33
    ·
    edit-2
    2 days ago

    That is why I use just int main(){...} without arguments instead.

  • affiliate@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 day ago

    i will never forgive C for making the type syntax be

    char* args[]
    

    instead of the much more reasonable

    &[char] args 
    

    it also bothers me that char* args[] and char c are “the same type” in the sense that the compiler lets you write

    char c, *args[5];
    

    with no problems. i think the C languages would be way easier to learn if they had better type syntax. don’t even get me started on C++ adding support for

    auto fn_name() -> ReturnType { … }