Aktív témák

  • _lupin_

    csendes tag

    válasz Jester01 #91 üzenetére

    Az nem véletlenül fordul, szabvány szerint írhatsz int main()-t is. (99-es szabány)

    [link]

    Beidézem az idevágó részt:

    main is the only function that may portably be declared either with zero or two arguments. (The number of other functions’ arguments must match exactly between invocation and definition.)
    This special case simply recognizes the widespread practice of leaving off the arguments to main when the program does not access the program argument strings. While many implementations support more than two arguments to main, such practice is neither blessed nor forbidden by the Standard; a program that defines main with three arguments is not strictly
    conforming


    szerk: a copy-zás javítás

    [Szerkesztve]

Aktív témák